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 3eced1c commit c70c8ddCopy full SHA for c70c8dd
Sprint-3/2-practice-tdd/repeat-str.test.js
@@ -1,4 +1,4 @@
1
-const repeatStr = require("./repeat-str");
+//const repeatStr = require("./repeat-str");
2
3
// ───────────────────────────────────────────────────────
4
// Rule Summary:
@@ -7,7 +7,7 @@ const repeatStr = require("./repeat-str");
7
// • count = 0 → empty string ""
8
// • count < 0 → throw error (invalid input)
9
10
-
+const repeatStr = require("./repeat-str");
11
// ── Case 1: Multiple repetitions (count > 1) ──
12
test("repeats string correctly for count > 1", () => {
13
expect(repeatStr("hello", 3)).toEqual("hellohellohello");
0 commit comments