File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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' , ( ) => {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments