Skip to content

Commit a548d71

Browse files
author
Pretty Taruvinga
committed
Strengthen dedupe test by adding length and content checks to prevent false positives
1 parent 43cf84a commit a548d71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sprint-1/implement/dedupe.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ test("Given an array with no duplicates, when passed to the dedupe function, the
3838

3939
expect(result).toEqual(input);
4040
expect(result).not.toBe(input);
41+
expect(result.length).toBe(input.length);
4142
});
4243

4344
// Given an array of strings or numbers

0 commit comments

Comments
 (0)