diff --git a/test/clone-object.js b/test/clone-object.js index 86ec647..6aae902 100644 --- a/test/clone-object.js +++ b/test/clone-object.js @@ -2,6 +2,7 @@ describe('clone object', function () { it('should clone an object', function () { var expected = {name: 'Ahmed', age: 27, skills: ['cycling', 'walking', 'eating']}, obj = {}; + obj = Object.assign(obj, expected); expect(obj).toEqual(expected); expect(obj).not.toBe(expected);