Skip to content

Commit dabfd0e

Browse files
committed
test: ignore order of array elements
1 parent fb05150 commit dabfd0e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/alias/journey.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ requireAtLeast(1, 32, 0).describe('manages collection aliases', () => {
2121
.then((aliases) => {
2222
expect(aliases).not.toBeUndefined();
2323
expect(aliases).toHaveLength(2);
24-
expect(aliases).toEqual<Alias[]>([
25-
{ collection: 'PaulHewson', alias: 'Bono' },
26-
{ collection: 'GeorgeBarnes', alias: 'MachineGunKelly' },
27-
]);
24+
expect(aliases).toEqual(
25+
expect.arrayContaining<Alias>([
26+
{ collection: 'PaulHewson', alias: 'Bono' },
27+
{ collection: 'GeorgeBarnes', alias: 'MachineGunKelly' },
28+
])
29+
);
2830
});
2931
});
3032

0 commit comments

Comments
 (0)