Skip to content

Commit

Permalink
Check all fields in the destroy rollback test
Browse files Browse the repository at this point in the history
  • Loading branch information
rdiazv committed Jun 30, 2017
1 parent 14d3341 commit 76e9f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/Model.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ describe('Model', () => {
it('rolls back the changes', () => {
return model.destroy().catch(() => {
expect(collection.models.length).toBe(1)
expect(collection.at(0).get('name')).toBe(item.name)
expect(collection.at(0).toJS()).toEqual(item)
})
})

Expand Down

0 comments on commit 76e9f48

Please sign in to comment.