Skip to content

Commit 4f67c06

Browse files
committed
Fixed comment incorrectly describing expected output
1 parent 7fffc53 commit 4f67c06

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

collections/assign/assign.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ describe('Assign tests', () => {
2929
const bookUpdated = Object.assign(copy, book);
3030
expect(bookUpdated.title).toEqual('Simplifying JavaScript');
3131
expect(bookUpdated.author).toEqual('Joe Morgan');
32+
expect(bookUpdated.year).toEqual(2017);
3233
const bookUpdated2 = Object.assign(copy, book2);
3334
expect(bookUpdated2.title).toEqual('Another book');
3435
expect(bookUpdated2.author).toEqual('Joe Morgan');
36+
expect(bookUpdated2.year).toEqual(2016);
3537
});
3638

3739
it('should add defaults with assign', () => {

collections/assign/mutate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Object.assign(defaults, anotherBook);
3232

3333
// {
3434
// author: 'Joe Morgan',
35-
// title: 'Simplifying JavaScript',
36-
// year: 2017,
35+
// title: 'Another book',
36+
// year: 2016,
3737
// rating: null,
3838
// }
3939
// # END:mutate2

0 commit comments

Comments
 (0)