{"ScriptPreparationCode":null,"TestCases":[{"Name":"Edting 1","Code":"var users = [\r\n {\r\n id: \u00271\u0027,\r\n name: \u0027User 1\u0027,\r\n rating: 3,\r\n properties: [\r\n { name: \u0027Duplex Flat\u0027, neighborhood: \u0027Friderichshain\u0027 },\r\n { name: \u0027Cozy Apartment\u0027, neighborhood: \u0027Friderichshain\u0027 }\r\n ]\r\n },\r\n {\r\n id: \u00272\u0027,\r\n name: \u0027User 2\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n {\r\n id: \u00273\u0027,\r\n name: \u0027User 3\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n {\r\n id: \u00274\u0027,\r\n name: \u0027User 4\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n {\r\n id: \u00275\u0027,\r\n name: \u0027User 5\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n {\r\n id: \u00276\u0027,\r\n name: \u0027User 6\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n }\r\n];\r\n\r\nvar newUsers = users.map(item =\u003E item.id === \u00272\u0027 ? {...item, name: \u0027edited name\u0027 } : item)","IsDeferred":false},{"Name":"Editing 2 ","Code":"var users = {\r\n 1: {\r\n id: \u00271\u0027,\r\n name: \u0027User 1\u0027,\r\n rating: 3,\r\n properties: [\r\n { name: \u0027Duplex Flat\u0027, neighborhood: \u0027Friderichshain\u0027 },\r\n { name: \u0027Cozy Apartment\u0027, neighborhood: \u0027Friderichshain\u0027 }\r\n ]\r\n },\r\n 2: {\r\n id: \u00272\u0027,\r\n name: \u0027User 2\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n 3: {\r\n id: \u00273\u0027,\r\n name: \u0027User 3\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n 4: {\r\n id: \u00274\u0027,\r\n name: \u0027User 4\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n 5: {\r\n id: \u00275\u0027,\r\n name: \u0027User 5\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n 6: {\r\n id: \u00275\u0027,\r\n name: \u0027User 5\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n }\r\n};\r\n\r\nvar newUsers = {\r\n ...users,\r\n 2: { \r\n ...users[\u00272\u0027],\r\n name: \u0027edited name\u0027\r\n }\r\n};\r\n","IsDeferred":false},{"Name":"Editing 3","Code":"var users = {\r\n 1: {\r\n id: \u00271\u0027,\r\n name: \u0027User 1\u0027,\r\n rating: 3,\r\n properties: [\r\n { name: \u0027Duplex Flat\u0027, neighborhood: \u0027Friderichshain\u0027 },\r\n { name: \u0027Cozy Apartment\u0027, neighborhood: \u0027Friderichshain\u0027 }\r\n ]\r\n },\r\n 2: {\r\n id: \u00272\u0027,\r\n name: \u0027User 2\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n 3: {\r\n id: \u00273\u0027,\r\n name: \u0027User 3\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n 4: {\r\n id: \u00274\u0027,\r\n name: \u0027User 4\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n 5: {\r\n id: \u00275\u0027,\r\n name: \u0027User 5\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n },\r\n 6: {\r\n id: \u00275\u0027,\r\n name: \u0027User 5\u0027,\r\n rating: 2,\r\n properties: [{ name: \u0027Single Room\u0027, neighborhood: \u0027Lichtenberg\u0027 }]\r\n }\r\n};\r\n\r\nusers[\u00272\u0027].name = \u0027edited name\u0027","IsDeferred":false}]}