Skip to content

Commit 14e256e

Browse files
committed
update: testing case1 count times
1 parent 8cb7495 commit 14e256e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sprint-3/3-mandatory-practice/implement/repeat.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ const repeat = require("./repeat");
99
// When the repeat function is called with these inputs,
1010
// Then it should repeat the str count times and return a new string containing the repeated str values.
1111

12-
// test("should repeat the string count times", () => {
13-
// const str = "hello";
14-
// const count = 3;
15-
// const repeatedStr = repeat(str, count);
16-
// expect(repeatedStr).toEqual("hellohellohello");
17-
// });
12+
test("should repeat the string count times", () => {
13+
const str = "hello";
14+
const count = 3;
15+
const repeatedStr = repeat(str, count);
16+
expect(repeatedStr).toEqual("hellohellohello");
17+
});
1818

1919
// case: handle Count of 1:
2020
// Given a target string str and a count equal to 1,

0 commit comments

Comments
 (0)