Skip to content

Commit aec1685

Browse files
committed
refactored test for 0 count to use toBe
1 parent eac5a16 commit aec1685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-3/2-practice-tdd/repeat.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test("should return an empty string", () => {
3535
const str = "hello";
3636
const count = 0;
3737
const repeatedStr = repeat(str, count);
38-
expect(repeatedStr).toEqual("");
38+
expect(repeatedStr).toBe("");
3939
});
4040

4141
// case: Negative Count:

0 commit comments

Comments
 (0)