Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { formatList } from "./list.js";
|
||||
|
||||
describe("formatList", () => {
|
||||
test("joins with 'and' for English conjunction", () => {
|
||||
expect(formatList(["Alpha", "Bravo", "Charlie"], { locale: "en-US" })).toBe("Alpha, Bravo, and Charlie");
|
||||
});
|
||||
|
||||
test("joins with 'und' for German conjunction", () => {
|
||||
expect(formatList(["Alpha", "Bravo", "Charlie"], { locale: "de-DE" })).toBe("Alpha, Bravo und Charlie");
|
||||
});
|
||||
|
||||
test("supports disjunction", () => {
|
||||
expect(formatList(["Alpha", "Bravo"], { locale: "en-US", type: "disjunction" })).toBe("Alpha or Bravo");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user