Skip to content

Commit 601eba7

Browse files
committed
modified the test of dedupe
1 parent 7b99611 commit 601eba7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ describe("dedupe", () => {
3737
// Then it should return a copy of the original array
3838

3939
it("returns for [1, 2, 3, 4]", () => {
40-
expect(dedupe([1, 2, 3, 4])).toEqual([1, 2, 3, 4]);
40+
const original = [1, 2, 3, 4];
41+
const result = dedupe(original);
42+
expect(result)not.toBe(original);
4143
});
4244

4345
// Given an array of strings or numbers

0 commit comments

Comments
 (0)