Skip to content

Commit b57531a

Browse files
committed
repeat function written and tested
1 parent 555d87e commit b57531a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ function repeat(str, count) {
66
}
77

88
module.exports = repeat;
9+

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ test("should throw an error for negative count", () => {
5050
repeat(str, count);
5151
}).toThrow("Invalid count value");
5252
});
53+

0 commit comments

Comments
 (0)