Skip to content

Commit 88de44b

Browse files
update test descriptions
1 parent 66ab7bb commit 88de44b

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
// 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 return 'hellohellohello' when called with str='hello' and count=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 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 string count times", () => {
23+
test("should return 'bye' when called with str='bye' and count=1", () => {
2424
const str = "bye";
2525
const count = 1;
2626
const repeatedStr = repeatStr(str, count);
@@ -31,7 +31,7 @@ test("should repeat string count times", () => {
3131
// Given a target string `str` and a `count` equal to 0,
3232
// When the repeatStr function is called with these inputs,
3333
// Then it should return an empty string.
34-
test("should repeat string count times", () => {
34+
test("should return an empty string when called with str='no' and count=0", () => {
3535
const str = "no";
3636
const count = 0;
3737
const repeatedStr = repeatStr(str, count);

0 commit comments

Comments
 (0)