diff --git a/__tests__/Model.spec.js b/__tests__/Model.spec.js index 4fab61c..3ba7ff2 100644 --- a/__tests__/Model.spec.js +++ b/__tests__/Model.spec.js @@ -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) }) })