We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f44b6 commit 9dae371Copy full SHA for 9dae371
examples/typescript/all/test/add.test.ts
@@ -25,4 +25,14 @@ describe('add', () => {
25
test('adding two odd numbers gives an even number', () => {
26
expect(add(1, 3)).toBeEven();
27
});
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
38
0 commit comments