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

11 lines
342 B
JavaScript

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");
});