Skip to content

Commit 4b91f08

Browse files
authored
remove 'TODO' comments
Removed TODO comment and added a test case for zero denominator.
1 parent 27500dc commit 4b91f08

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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
@@ -2,7 +2,6 @@
22
// We will use the same function, but write tests for it using Jest in this file.
33
const isProperFraction = require("../implement/2-is-proper-fraction");
44

5-
// TODO: Write tests in Jest syntax to cover all combinations of positives, negatives, zeros, and other categories.
65

76
// Special case: denominator is zero
87
test(`should return false when denominator is zero`, () => {
@@ -62,4 +61,4 @@ test(`should return true when numerator and denominator are both floating point
6261
// numerator and denominator are both floating point numbers, numerator is larger
6362
test(`should return false when numerator and denominator are both floating point numbers and numerator is larger`, () => {
6463
expect(isProperFraction(2.5, 1.5)).toEqual(false);
65-
});
64+
});

0 commit comments

Comments
 (0)