Skip to content

Commit cba6d18

Browse files
committed
fixed the test in dedupe
1 parent 5253409 commit cba6d18

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Sprint-1/implement/dedupe.test.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ const testCaseNoDuplicates = [
3333
expected: [2, 3, 4, 5, 6, 7],
3434
},
3535
];
36-
const result = dedupe(input);
3736

3837
testCaseNoDuplicates.forEach(({ input, expected }) => {
3938
test("given an array with no duplicates, return a copy of the array", () => {
40-
expect(dedupe(input)).toEqual(expected);
39+
const result = dedupe(input);
40+
41+
expect(result).toEqual(expected);
4142
expect(result).not.toBe(input);
4243
});
4344
});

0 commit comments

Comments
 (0)