File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Sprint-3/3-mandatory-practice/implement Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments