Skip to content

Commit ea18c85

Browse files
committed
Added the word integer as the test failed.
1 parent 6a8425e commit ea18c85

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
function repeatStr(str,count) {
1+
function repeatStr(str, count) {
22
if (count < 0) {
3-
throw new Error("Count must be a non-negative");
3+
throw new Error("Count must be a non-negative integer");
44
}
55
return str.repeat(count);
66
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"keywords": [],
1010
"author": "Code Your Future",
1111
"license": "ISC",
12-
"dependencies": {
13-
"jest": "^29.7.0"
12+
"devDependencies": {
13+
"jest": "^30.2.0"
1414
}
15-
}
15+
}

0 commit comments

Comments
 (0)