work.suroh.tk/node_modules/@11ty/eleventy/test/PluralizeTest.js

11 lines
342 B
JavaScript
Raw Normal View History

2019-12-02 12:22:45 +00:00
import test from "ava";
import pluralize from "../src/Util/Pluralize";
test("Pluralize", t => {
t.is(pluralize(0, "test", "tests"), "tests");
t.is(pluralize(1, "test", "tests"), "test");
t.is(pluralize(2, "test", "tests"), "tests");
t.is(pluralize(3, "test", "tests"), "tests");
t.is(pluralize(3.5, "test", "tests"), "tests");
});