We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39b7d63 commit 36716f3Copy full SHA for 36716f3
1 file changed
Sprint-3/2-practice-tdd/repeat-str.test.js
@@ -40,7 +40,7 @@ test("should return an empty string", () => {
40
// Given a target string `str` and a negative integer `count`,
41
// When the repeatStr function is called with these inputs,
42
// Then it should throw an error, as negative counts are not valid.
43
-test(`Should throw an error`, () => {
+test(`Should throw an error when count is negative`, () => {
44
expect(() => {
45
repeatStr("hello", -1);
46
}).toThrow();
0 commit comments