Skip to content

Commit a04ff65

Browse files
committed
more tests
1 parent df583c4 commit a04ff65

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/jest/util/deepEqual.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ describe('deepEqual', () => {
2121
expect(result).toBeFalse();
2222
});
2323

24-
it('should return true when objects have functions', () => {
24+
it('should return false when objects have functions', () => {
2525
const result = deepEqual({ a: 42, c: jest.fn() }, { a: 42, c: jest.fn() });
2626
expect(result).toBeFalse();
2727
});
28+
29+
it('should return true when objects have same functions', () => {
30+
const fn = jest.fn();
31+
const result = deepEqual({ a: 42, c: fn }, { a: 42, c: fn });
32+
expect(result).toBeTrue();
33+
});
2834
});

0 commit comments

Comments
 (0)