We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b34e66c commit efc78a8Copy full SHA for efc78a8
Sprint-3/2-practice-tdd/get-ordinal-number.test.js
@@ -13,6 +13,7 @@ const getOrdinalNumber = require("./get-ordinal-number");
13
// Case 1: Numbers ending with 1 (but not 11)
14
// When the number ends with 1, except those ending with 11,
15
// Then the function should return a string by appending "st" to the number.
16
+
17
test("should append 'st' for numbers ending with 1, except those ending with 11", () => {
18
expect(getOrdinalNumber(1)).toEqual("1st");
19
expect(getOrdinalNumber(21)).toEqual("21st");
0 commit comments