Skip to content

Commit

Permalink
add test based on existing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
planttheidea committed Feb 18, 2023
1 parent 4356e4f commit a025048
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions __tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,17 @@ describe('strict', () => {
expect(strictDeepEqual(a, c)).toBe(false);
expect(strictDeepEqual(b, c)).toBe(false);
});

it('issue 93 - should handle symbol keys', () => {
const obj1 = {
[Symbol.for('hi')]: 1,
};
const obj2 = {
[Symbol.for('hi')]: 2,
};

expect(strictDeepEqual(obj1, obj2)).toBe(false);
});
});

describe('createCustomEqual', () => {
Expand Down

0 comments on commit a025048

Please sign in to comment.