Skip to content

Commit 6dc114e

Browse files
refactor: improve formatting and consistency of tests in isProperFraction test suite
1 parent 468c39f commit 6dc114e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ const isProperFraction = require("../implement/2-is-proper-fraction");
44

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

7-
// Special case: numerator is zero
8-
test(`should return false when denominator is zero`, () => {
7+
// Special case: denominator is zero
8+
test("should return false when denominator is zero", () => {
99
expect(isProperFraction(1, 0)).toEqual(false);
1010
});
1111

1212
// Case 2: Identify Improper Fractions:
13-
test("should return false for improper fraction",()=>{
14-
expect(isProperFraction(3,2)).toEqual(false)
15-
})
13+
test("should return false for improper fraction", () => {
14+
expect(isProperFraction(3, 2)).toEqual(false);
15+
});
1616

1717
// Case 3: Identify Negative Fractions:
18-
test("should return true for negative proper fraction",()=>{
19-
expect(isProperFraction(-2,7)).toEqual(true)
20-
})
18+
test("should return true for negative proper fraction", () => {
19+
expect(isProperFraction(-2, 7)).toEqual(true);
20+
});
2121

2222
// Case 4: Identify Equal Numerator and Denominator:
23-
test("should return false for equal nominator and denominator",()=>{
24-
expect(isProperFraction(2,2)).toEqual(false)
25-
})
23+
test("should return false for equal nominator and denominator", () => {
24+
expect(isProperFraction(2, 2)).toEqual(false);
25+
});

0 commit comments

Comments
 (0)