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 6db0981 commit 7362e86Copy full SHA for 7362e86
Sprint-3/2-practice-tdd/get-ordinal-number.test.js
@@ -11,3 +11,15 @@ const getOrdinalNumber = require("./get-ordinal-number");
11
test("should return '1st' for 1", () => {
12
expect(getOrdinalNumber(1)).toEqual("1st");
13
});
14
+
15
+test("should return '11th' for 11", () => {
16
+ expect(getOrdinalNumber(11)).toEqual("11th");
17
+})
18
19
+test("should return '21st' for 21", () => {
20
+ expect(getOrdinalNumber(21)).toEqual("21st");
21
22
23
+test("should return '2nd' for 2", () => {
24
+ expect(getOrdinalNumber(2)).toEqual("2nd");
25
0 commit comments