Skip to content

Commit

Permalink
Fix lint errors in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guigrpa committed Oct 3, 2017
1 parent 42c051f commit 96c2689
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ test('set: should return the same object when it hasn\'t changed', (t) => {
});

test('set: should return a new object when the first parameter is null or undefined and the key is a string', (t) => {
t.deepEqual(timm.set(null, 'b', 2), {b: 2});
t.deepEqual(timm.set(undefined, 'b', 2), {b: 2});
t.deepEqual(timm.set(null, 'b', 2), { b: 2 });
t.deepEqual(timm.set(undefined, 'b', 2), { b: 2 });
});

test('set: should return a new array when the first parameter is null or undefined and the key is a number', (t) => {
t.deepEqual(timm.set(null, 5, 2), [,,,,,2]);
t.deepEqual(timm.set(null, 5, 2), [,,,,,2]); // eslint-disable-line
t.deepEqual(timm.set(undefined, 0, 'value'), ['value']);
});

Expand Down Expand Up @@ -202,12 +202,12 @@ test('update: should return the same object when it hasn\'t changed', (t) => {
});

test('update: should return a new object when the first parameter is null or undefined and the key is a string', (t) => {
t.deepEqual(timm.update(null, 'b', () => 2), {b: 2});
t.deepEqual(timm.update(undefined, 'b', () => 2), {b: 2});
t.deepEqual(timm.update(null, 'b', () => 2), { b: 2 });
t.deepEqual(timm.update(undefined, 'b', () => 2), { b: 2 });
});

test('update: should return a new array when the first parameter is null or undefined and the key is a number', (t) => {
t.deepEqual(timm.update(null, 5, () => 2), [,,,,,2]);
t.deepEqual(timm.update(null, 5, () => 2), [,,,,,2]); // eslint-disable-line
t.deepEqual(timm.update(undefined, 0, () => 'value'), ['value']);
});

Expand Down

0 comments on commit 96c2689

Please sign in to comment.