From 941bb7617ef19624cce9403e0c8967959d14ab01 Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Wed, 24 Jun 2020 15:51:55 -0700 Subject: [PATCH] chore: add failing test --- test/es6.test.js | 7 +++++++ 1 file changed, 7 insertions(+) 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' }); + }); +});