|
1 |
| -import countdown from "../../src/countdown" |
| 1 | +const {inflection} = require("../../src/countdown.js"); |
2 | 2 |
|
3 | 3 | describe("Inflection unit tests", function () {
|
4 |
| - const {inflection} = countdown |
| 4 | + it("inflection of year", function() { |
| 5 | + expect(inflection(1, "years", "en")).to.eq("year") |
| 6 | + }); |
5 | 7 |
|
6 |
| - context("countdown.js", function() { |
7 |
| - it("inflection of year", function() { |
8 |
| - expect(inflection(1, "years", "en")).to.eq("year") |
9 |
| - }); |
10 |
| - |
11 |
| - it("inflection of minutes", function() { |
12 |
| - expect(inflection(4, "minutes", "cs")).to.eq("minuty") |
13 |
| - }); |
14 |
| - |
15 |
| - it("inflection of days", function() { |
16 |
| - expect(inflection(23, "days", "sk")).to.eq("dní") |
17 |
| - }); |
18 |
| - }) |
| 8 | + it("inflection of minutes", function() { |
| 9 | + expect(inflection(4, "minutes", "cs")).to.eq("minuty") |
| 10 | + }); |
| 11 | + |
| 12 | + it("inflection of days", function() { |
| 13 | + expect(inflection(23, "days", "sk")).to.eq("dní") |
| 14 | + }); |
19 | 15 | });
|
0 commit comments