Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinm committed Jan 15, 2024
1 parent df583c4 commit a04ff65
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/jest/util/deepEqual.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ describe('deepEqual', () => {
expect(result).toBeFalse();
});

it('should return true when objects have functions', () => {
it('should return false when objects have functions', () => {
const result = deepEqual({ a: 42, c: jest.fn() }, { a: 42, c: jest.fn() });
expect(result).toBeFalse();
});

it('should return true when objects have same functions', () => {
const fn = jest.fn();
const result = deepEqual({ a: 42, c: fn }, { a: 42, c: fn });
expect(result).toBeTrue();
});
});

0 comments on commit a04ff65

Please sign in to comment.