Skip to content

Commit 969c076

Browse files
committed
fixing error on line 12
1 parent 9f67b6c commit 969c076

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +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 false when the numerator > the denominator
13-
test("should return false when abs(numerator) == 0", () => {
12+
test("should return true when abs(numerator) == 0", () => {
1413
expect(isProperFraction(0, -1)).toEqual(true);
1514
expect(isProperFraction(0, 3)).toEqual(true);
1615
expect(isProperFraction(0, -2)).toEqual(true);

0 commit comments

Comments
 (0)