diff --git a/test/es6.test.js b/test/es6.test.js index 88b28dd..ebd02c2 100644 --- a/test/es6.test.js +++ b/test/es6.test.js @@ -65,3 +65,10 @@ describe('is method', () => { expect(Plant.isPlant(mammal)).toBe(false); }); }); + +describe('it satisfies deep.equal', () => { + it('should satisfy deep equality with duck typed object', () => { + expect(new Animal.WrappedClass('cat')).toEqual({ type: 'cat' }); + expect(new Animal('cat')).toEqual({ type: 'cat' }); + }); +});