Skip to content

Commit 28288c3

Browse files
committed
replacement jest output with the detailed conditions
1 parent 73e0c61 commit 28288c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ test("should append 'th' for numbers ending with 11, 12, or 13", () => {
4848
});
4949

5050
// Case 5: numbers that ends with 0, 4, 5, 6, 7, 8, or 9
51-
// When the number does not end with 1, 2, or 3
51+
// When the number ends with 0, 4, 5, 6, 7, 8, or 9
5252
// Then the function should return a string by appending "th" to the number.
5353

54-
test("should append 'th' for all other numbers", () => {
54+
test("should append 'th' for numbers ending with 0, 4, 5, 6, 7, 8, or 9", () => {
55+
expect(getOrdinalNumber(0)).toEqual("0th");
5556
expect(getOrdinalNumber(4)).toEqual("4th");
5657
expect(getOrdinalNumber(10)).toEqual("10th");
5758
expect(getOrdinalNumber(11)).toEqual("115th");

0 commit comments

Comments
 (0)