diff --git a/packages/core/database/lib/entity-manager/__tests__/sort-connect-array.test.js b/packages/core/database/lib/entity-manager/__tests__/sort-connect-array.test.js index 7150644621..bb8f56e3f9 100644 --- a/packages/core/database/lib/entity-manager/__tests__/sort-connect-array.test.js +++ b/packages/core/database/lib/entity-manager/__tests__/sort-connect-array.test.js @@ -41,9 +41,8 @@ describe('sortConnectArray', () => { test("error if position doesn't exist", () => { const sortConnect = () => sortConnectArray([{ id: 1, position: { after: 2 } }]); - expect(sortConnect).toThrowErrorMatchingSnapshot( - '"There was a problem connecting relation with id 1 at position' + - '{"after":2}. The relation with id 2 needs to be connected first."' + expect(sortConnect).toThrowError( + 'There was a problem connecting relation with id 1 at position {"after":2}. The relation with id 2 needs to be connected first.' ); }); });