Skip to content

Commit

Permalink
Fix linting errors in update-tests.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Sep 25, 2015
1 parent f67a890 commit 64af4b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/addons/__tests__/update-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('update', function() {
expect(update({a: 'b'}, {$set: {c: 'd'}})).toEqual({c: 'd'});
});

it('should keep reference equality when possible with set', function () {
it('should keep reference equality when possible with set', function() {
var original = {a: 1};
expect(update(original, {a: {$set: 1}})).toBe(original);
});
Expand All @@ -84,9 +84,11 @@ describe('update', function() {
);
});

it('should keep reference equality when possible with apply', function () {
it('should keep reference equality when possible with apply', function() {
var original = {a: {b: {}}};
function identity (val) { return val; }
function identity(val) {
return val;
}
expect(update(original, {a: {$apply: identity}})).toBe(original);
});

Expand Down

0 comments on commit 64af4b5

Please sign in to comment.