Skip to content

Commit

Permalink
Improve identity util test to check reference
Browse files Browse the repository at this point in the history
Just returning the argument so can check by reference instead of deep
equal
  • Loading branch information
frankychung committed Jun 18, 2015
1 parent ddbfc5a commit d76b216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/identity.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Utils', () => {
describe('identity', () => {
it('should return first argument passed to it', () => {
var test = { 'a': 1 };
expect(identity(test, 'test')).toEqual(test);
expect(identity(test, 'test')).toBe(test);
});
});
});

0 comments on commit d76b216

Please sign in to comment.