Skip to content

Commit 9dae371

Browse files
authored
fix(types): fix jest AsymmetricMatcher type (#551)
1 parent d6f44b6 commit 9dae371

File tree

2 files changed

+82
-72
lines changed

2 files changed

+82
-72
lines changed

examples/typescript/all/test/add.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,14 @@ describe('add', () => {
2525
test('adding two odd numbers gives an even number', () => {
2626
expect(add(1, 3)).toBeEven();
2727
});
28+
29+
test('array equal another array regardless of the order', () => {
30+
expect([1, 3]).toIncludeSameMembers([3, 1]);
31+
});
32+
33+
test('array property equal another array regardless of the order', () => {
34+
expect({ array: [1, 3] }).toEqual({
35+
array: expect.toIncludeSameMembers([3, 1]),
36+
});
37+
});
2838
});

0 commit comments

Comments
 (0)