We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8425e commit ea18c85Copy full SHA for ea18c85
Sprint-3/2-practice-tdd/repeat-str.js
@@ -1,6 +1,6 @@
1
-function repeatStr(str,count) {
+function repeatStr(str, count) {
2
if (count < 0) {
3
- throw new Error("Count must be a non-negative");
+ throw new Error("Count must be a non-negative integer");
4
}
5
return str.repeat(count);
6
package.json
@@ -9,7 +9,7 @@
9
"keywords": [],
10
"author": "Code Your Future",
11
"license": "ISC",
12
- "dependencies": {
13
- "jest": "^29.7.0"
+ "devDependencies": {
+ "jest": "^30.2.0"
14
15
-}
+}
0 commit comments