File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,17 @@ const repeatStr = require("./repeat-str");
1212test ( "should repeat the string count times" , ( ) => {
1313 const str = "hello" ;
1414 const count = 3 ;
15- expect ( repeatStr ( str , count ) ) . toEqual ( "hellohellohello" ) ;
15+ expect ( repeatStr ( str , count ) ) . toEqual ( "hellohellohello" ) ;
1616} ) ;
17- test ( " should return original 'str' without repetition" , ( ) => {
17+ test ( " should return original 'str' without repetition" , ( ) => {
1818 const str = "hello" ;
1919 const count = 1 ;
2020 expect ( repeatStr ( str , count ) ) . toEqual ( "hello" ) ;
2121} ) ;
22- test ( "should return empty string" , ( ) => {
22+ test ( "should return empty string" , ( ) => {
2323 const str = "hello" ;
2424 const count = 0 ;
2525 expect ( repeatStr ( str , count ) ) . toEqual ( "" ) ;
26-
2726} ) ;
2827test ( "should throw an error when count is negative" , ( ) => {
2928 const str = "hello" ;
You can’t perform that action at this time.
0 commit comments