Skip to content

Commit

Permalink
fix(types): fix jest AsymmetricMatcher type (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton committed Jan 10, 2023
1 parent d6f44b6 commit 9dae371
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 72 deletions.
10 changes: 10 additions & 0 deletions examples/typescript/all/test/add.test.ts
Expand Up @@ -25,4 +25,14 @@ describe('add', () => {
test('adding two odd numbers gives an even number', () => {
expect(add(1, 3)).toBeEven();
});

test('array equal another array regardless of the order', () => {
expect([1, 3]).toIncludeSameMembers([3, 1]);
});

test('array property equal another array regardless of the order', () => {
expect({ array: [1, 3] }).toEqual({
array: expect.toIncludeSameMembers([3, 1]),
});
});
});

0 comments on commit 9dae371

Please sign in to comment.