Skip to content

Commit 6fa7768

Browse files
committed
Fixed export
1 parent 812f28a commit 6fa7768

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

cypress/integration/inflection.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
import countdown from "../../src/countdown"
1+
const {inflection} = require("../../src/countdown.js");
22

33
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+
});
57

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+
});
1915
});

src/countdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ function startCountdowns(className = "countdown") {
110110
}
111111
}
112112

113-
export default { inflection };
113+
//export default { inflection };

0 commit comments

Comments
 (0)