Skip to content

Commit 19b1d13

Browse files
committed
adding description
1 parent 969c076 commit 19b1d13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sprint-3/1-implement-and-rewrite-tests/rewrite-tests-with-jest/2-is-proper-fraction.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ test("should Throw new error for abs(denominator) == 0", () => {
99
expect(() => isProperFraction(0, 0)).toThrow("Denominator cannot be zero");
1010
expect(() => isProperFraction(7, 0)).toThrow("Denominator cannot be zero");
1111
});
12+
// It should return true when the numerator is 0
1213
test("should return true when abs(numerator) == 0", () => {
1314
expect(isProperFraction(0, -1)).toEqual(true);
1415
expect(isProperFraction(0, 3)).toEqual(true);

0 commit comments

Comments
 (0)