Skip to content

Commit

Permalink
fix(tests): correct string comparison in deep-equal tests
Browse files Browse the repository at this point in the history
Fixed the assertion to properly check for inequality between two different strings. This ensures the deepEqual function behaves as expected when comparing different string values.
  • Loading branch information
mallikcheripally committed Nov 18, 2024
1 parent fd3ca9a commit 3340390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ console.log(deepEqual(null, undefined)); // false

We welcome contributions from the community to make this library better. If you find any issues or have suggestions for improvements, feel free to contribute or open an issue on our [GitHub Repository](/~https://github.com/mallikcheripally/deep-equal-js).

### License
# License

This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.

### Something Missing?
# Something Missing?

If you find any issues or have suggestions for improvements, feel free to contribute or open an issue on our [GitHub Repository](/~https://github.com/mallikcheripally/deep-equal-js).
2 changes: 1 addition & 1 deletion tests/deep-equal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('deepEqual', () => {
test('String should return false', () => {
const str1 = String('1');
const str2 = String('2');
expect(deepEqual(str1, str2)).toBe(true);
expect(deepEqual(str1, str2)).toBe(false);
});

test('Map should return true', () => {
Expand Down

0 comments on commit 3340390

Please sign in to comment.