@@ -9,7 +9,7 @@ const repeatStr = require("./repeat-str");
99// If a string is "hello" and count is 3 then
1010// the hello will be output 3 times with no spaces between
1111
12- test ( "should repeat the string count times" , ( ) => {
12+ test ( "when count equals 3 it should repeat the string 3 times without spaces " , ( ) => {
1313 const str = "hello" ;
1414 const count = 3 ;
1515 const repeatedStr = repeatStr ( str , count ) ;
@@ -21,7 +21,7 @@ test("should repeat the string count times", () => {
2121// will be output for example if the string is "Hello"
2222// then the output will be "Hello"
2323
24- test ( "should repeat the string count times " , ( ) => {
24+ test ( "when count equals 1 it produce the string " , ( ) => {
2525 const str = "hello" ;
2626 const count = 1 ;
2727 const repeatedStr = repeatStr ( str , count ) ;
@@ -32,7 +32,7 @@ test("should repeat the string count times", () => {
3232// If the the string is empty then count will be 0
3333// and an empty string will be returned
3434
35- test ( "should repeat the string count times " , ( ) => {
35+ test ( "when count equals 0 it should produce an empty string " , ( ) => {
3636 const str = "hello" ;
3737 const count = 0 ;
3838 const repeatedStr = repeatStr ( str , count ) ;
0 commit comments