Skip to content

Commit d0b6378

Browse files
committed
Update expected output for negative float to 'Invalid count: count should be an integer' in Jest test case
1 parent 95ba4bf commit d0b6378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ test("should return an error message for non-integer negative count", () => {
105105
const str = "banana";
106106
const count = -1.7;
107107
const repeatedStr = repeat(str, count);
108-
expect(repeatedStr).toEqual("Negative number invalid");
108+
expect(repeatedStr).toEqual("Invalid count: count should be an integer");
109109
});
110110

111111
// case: Object input

0 commit comments

Comments
 (0)