Skip to content

Commit c7be983

Browse files
committed
added empty str for get-ordinal-number.test.js
1 parent f0b41af commit c7be983

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

‎practice-tdd/repeat-str.test.js‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,22 @@ test("should repeat the string count times", () => {
7272
expect(repeatedStr).toEqual("");
7373
});
7474

75+
test("should repeat the string count times", () => {
76+
const str = "";
77+
const count = 3;
78+
const repeatedStr = repeatStr(str, count);
79+
expect(repeatedStr).toEqual("")
80+
});
81+
7582
test("should throw new error 'count could not be negative' when number of count <0", () => {
76-
const str = "goodbye";
83+
const str = "";
7784
const count = -2; () =>
7885
expect(repeatStr).toThrow("count could not be negative");
79-
});
86+
});
87+
88+
test("should repeat the string count times", () => {
89+
const str = "";
90+
const count = 0;
91+
const repeatedStr = repeatStr(str, count);
92+
expect(repeatedStr).toEqual("")
93+
});

0 commit comments

Comments
 (0)