{"ScriptPreparationCode":null,"TestCases":[{"Name":"push array item","Code":"class User {\r\n\tname;\r\n\tid;\r\n\tage;\r\n\tattributes;\r\n\r\n\tconstructor(name, id, age, attributes) {\r\n this.name = name;\r\n this.id = id;\r\n this.age = age;\r\n this.attrubitues = attributes;\r\n }\r\n\r\n\tgetId(){\r\n return this.id;\r\n }\r\n}\r\n\r\nconst user1 = new User(\u0027abc\u0027, \u00271234567789\u0027, 30, {uuid: \u0027dlajfo3i458dfug9a87u9d8ug\u0027});\r\nconst user2 = new User(\u0027abc\u0027, \u00271234567789\u0027, 30, {uuid: \u0027dlajfo3i458dfug9a87u9d8ug\u0027});\r\nconst user3 = new User(\u0027abc\u0027, \u00271234567789\u0027, 30, {uuid: \u0027dlajfo3i458dfug9a87u9d8ug\u0027});\r\nvar existed = [ user1, user3, user3 ];\r\nconst newUser = new User(\u0027abc\u0027, \u00271234567789\u0027, 30, {uuid: \u0027dlajfo3i458dfug9a87u9d8ug\u0027});\r\nvar newResults = [ newUser ];\r\n\r\nconst other = existed.push(...newResults);","IsDeferred":false},{"Name":"push item","Code":"class User {\r\n\tname;\r\n\tid;\r\n\tage;\r\n\tattributes;\r\n\r\n\tconstructor(name, id, age, attributes) {\r\n this.name = name;\r\n this.id = id;\r\n this.age = age;\r\n this.attrubitues = attributes;\r\n }\r\n\r\n\tgetId(){\r\n return this.id;\r\n }\r\n}\r\n\r\nconst user1 = new User(\u0027abc\u0027, \u00271234567789\u0027, 30, {uuid: \u0027dlajfo3i458dfug9a87u9d8ug\u0027});\r\nconst user2 = new User(\u0027abc\u0027, \u00271234567789\u0027, 30, {uuid: \u0027dlajfo3i458dfug9a87u9d8ug\u0027});\r\nconst user3 = new User(\u0027abc\u0027, \u00271234567789\u0027, 30, {uuid: \u0027dlajfo3i458dfug9a87u9d8ug\u0027});\r\nvar existed = [ user1, user3, user3 ];\r\nconst newUser = new User(\u0027abc\u0027, \u00271234567789\u0027, 30, {uuid: \u0027dlajfo3i458dfug9a87u9d8ug\u0027});\r\nvar newResults = [ newUser ];\r\n\r\nconst other = existed.push(newUser);","IsDeferred":false}]}