Skip to content

Commit 36716f3

Browse files
authored
Rename test case for negative count error
1 parent 39b7d63 commit 36716f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test("should return an empty string", () => {
4040
// Given a target string `str` and a negative integer `count`,
4141
// When the repeatStr function is called with these inputs,
4242
// Then it should throw an error, as negative counts are not valid.
43-
test(`Should throw an error`, () => {
43+
test(`Should throw an error when count is negative`, () => {
4444
expect(() => {
4545
repeatStr("hello", -1);
4646
}).toThrow();

0 commit comments

Comments
 (0)