From a65cb50519463bd34350559a01136bed0bd21326 Mon Sep 17 00:00:00 2001 From: brad_Dev <50883158+bsrwilliams@users.noreply.github.com> Date: Tue, 12 Jan 2021 13:42:11 +0000 Subject: [PATCH] Update clone-object.js Should be a clone of expected object --- test/clone-object.js | 1 + 1 file changed, 1 insertion(+) 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);