Skip to content

Commit c0d73a6

Browse files
authored
test: update expected result (#5739)
1 parent 08661ef commit c0d73a6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/graphql-transformers-e2e-tests/src/__tests__/SearchableModelTransformer.e2e.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -877,13 +877,7 @@ test('query using date range for createdAt', async () => {
877877
expect(searchResponse).toBeDefined();
878878
const items = searchResponse.data.searchUsers.items;
879879
expect(items.length).toEqual(expectLength);
880-
expect(items).toMatch(
881-
expect.arrayContaining([
882-
expect.objectContaining({ createdAt: '2016-07-20' }),
883-
expect.objectContaining({ createdAt: '2017-06-10' }),
884-
expect.objectContaining({ createdAt: '2017-08-22' }),
885-
]),
886-
);
880+
expect(items.map(item => item.createdAt).sort()).toEqual(['2016-07-20', '2017-06-10', '2017-08-22']);
887881
});
888882

889883
test('query for books by Agatha Christie with model using @key', async () => {

0 commit comments

Comments
 (0)