Skip to content

Commit 06a987e

Browse files
committed
test cases recategorising -- styling
1 parent 25b1868 commit 06a987e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sprint-3/2-practice-tdd/get-ordinal-number.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ test("Numbers that end with `nd`", () => {
2121
expect(getOrdinalNumber(32)).toEqual("32nd");
2222
expect(getOrdinalNumber(202)).toEqual("202nd");
2323
expect(getOrdinalNumber(4502)).toEqual("4502nd");
24-
}
24+
});
2525

2626
// Case 3:: "Numbers that end with `rd`
27-
);
28-
2927
test("Numbers that end with `rd`", () => {
3028
expect(getOrdinalNumber(3)).toEqual("3rd");
3129
expect(getOrdinalNumber(43)).toEqual("43rd");
@@ -53,7 +51,6 @@ test("Numbers that are exceptions (11, 12, 13)", () => {
5351
});
5452

5553
// Case 6: "Non-positive integers (NaN, Infinity, non-integers)
56-
5754
test("should throw an error stating that input must be a positive integer", () => {
5855
expect(() => getOrdinalNumber(NaN)).toThrow("Input must be a positive integer.");
5956
expect(() => getOrdinalNumber(Infinity)).toThrow("Input must be a positive integer.");

0 commit comments

Comments
 (0)