@@ -9,7 +9,7 @@ const repeatStr = require("./repeat-str");
99// When the repeatStr function is called with these inputs,
1010// Then it should return a string that contains the original `str` repeated `count` times.
1111
12- test ( "should repeat the string count '3' times" , ( ) => {
12+ test ( "should return a string repeated 3 times when count is 3 " , ( ) => {
1313 const str = "hello" ;
1414 const count = 3 ;
1515 const repeatedStr = repeatStr ( str , count ) ;
@@ -20,7 +20,7 @@ test("should repeat the string count '3' times", () => {
2020// Given a target string `str` and a `count` equal to 1,
2121// When the repeatStr function is called with these inputs,
2222// Then it should return the original `str` without repetition.
23- test ( "should repeat the string count '1' time " , ( ) => {
23+ test ( "should return the original string when count is 1 " , ( ) => {
2424 const str = "hello" ;
2525 const count = 1 ;
2626 const repeatedStr = repeatStr ( str , count ) ;
@@ -30,7 +30,7 @@ test("should repeat the string count '1' time", () => {
3030// Given a target string `str` and a `count` equal to 0,
3131// When the repeatStr function is called with these inputs,
3232// Then it should return an empty string.
33- test ( "should return an empty string" , ( ) => {
33+ test ( "should return an empty string when count is 0 " , ( ) => {
3434 const str = "hello" ;
3535 const count = 0 ;
3636 const repeatedStr = repeatStr ( str , count ) ;
0 commit comments