Skip to content

Commit d76b216

Browse files
committed
Improve identity util test to check reference
Just returning the argument so can check by reference instead of deep equal
1 parent ddbfc5a commit d76b216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/utils/identity.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('Utils', () => {
55
describe('identity', () => {
66
it('should return first argument passed to it', () => {
77
var test = { 'a': 1 };
8-
expect(identity(test, 'test')).toEqual(test);
8+
expect(identity(test, 'test')).toBe(test);
99
});
1010
});
1111
});

0 commit comments

Comments
 (0)