Skip to content

Commit daec403

Browse files
updated description for clarity
1 parent ebe2c5d commit daec403

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sprint-3/2-practice-tdd/repeat-str.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)