@@ -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 times" , ( ) => {
12+ test ( "should repeat the string count '3' times" , ( ) => {
1313 const str = "hello" ;
1414 const count = 3 ;
1515 const repeatedStr = repeatStr ( str , count ) ;
@@ -20,7 +20,7 @@ test("should repeat the string count 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 times " , ( ) => {
23+ test ( "should repeat the string count '1' time " , ( ) => {
2424 const str = "hello" ;
2525 const count = 1 ;
2626 const repeatedStr = repeatStr ( str , count ) ;
@@ -30,7 +30,7 @@ test("should repeat the string count times", () => {
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 repeat the string count times " , ( ) => {
33+ test ( "should return an empty string " , ( ) => {
3434 const str = "hello" ;
3535 const count = 0 ;
3636 const repeatedStr = repeatStr ( str , count ) ;
@@ -44,4 +44,4 @@ test(`Should throw an error`, () => {
4444 expect ( ( ) => {
4545 repeatStr ( "hello" , - 1 ) ;
4646 } ) . toThrow ( ) ;
47- } ) ;
47+ } ) ;
0 commit comments