Skip to content

Commit

Permalink
🚚 Make apply's own test file
Browse files Browse the repository at this point in the history
  • Loading branch information
nlepage committed Nov 12, 2017
1 parent bbb85da commit c2b2e94
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/array/push.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,4 @@ describe('Push', () => {
return output
}, { nested: { prop: 1 } }, 'nested.prop')
})

it('should push in several arrays', () => {
immutaTest(input => {
const output = push(input, 'nested.prop[:].arr', 2)
expect(output).toEqual({
nested: {
prop: [
{ arr: [1, 2] },
{ arr: [1, 2] },
{ arr: [2] },
],
},
})
return output
}, {
nested: {
prop: [
{ arr: [1] },
{ arr: 1 },
{},
],
},
}, 'nested.prop')
})
})

0 comments on commit c2b2e94

Please sign in to comment.