We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2029d9 commit e7602abCopy full SHA for e7602ab
Sprint-1/implement/dedupe.test.js
@@ -43,4 +43,11 @@ describe("dedupe", () => {
43
it(`returns the deduped array for [${input}]`, () =>
44
expect(dedupe(input)).toEqual(expected))
45
);
46
+
47
+ it("returns a copy not the original array", () => {
48
+ const input = [1, 2, 3];
49
+ const result = dedupe(input);
50
+ expect(result).toEqual(input);
51
+ expect(result).not.toBe(input);
52
+ });
53
});
0 commit comments