test: prune redundant cases and promote configuration lifecycle coverage

This commit is contained in:
morluto
2026-10-09 02:58:03 +08:00
parent bef234d6ce
commit 5945915f91
18 changed files with 237 additions and 417 deletions
-11
View File
@@ -13,12 +13,6 @@ describe("compareCodePoints", () => {
expect(compareCodePoints(GRINNING, REPLACEMENT)).toBeGreaterThan(0);
});
it("reports equality only for equal strings", () => {
expect(compareCodePoints("", "")).toBe(0);
expect(compareCodePoints(GRINNING, GRINNING)).toBe(0);
expect(compareCodePoints("a", "a")).toBe(0);
});
it("keeps a prefix before its own extension", () => {
expect(compareCodePoints("ab", "abc")).toBe(-1);
expect(compareCodePoints("abc", "ab")).toBe(1);
@@ -39,9 +33,4 @@ describe("uniqueSorted", () => {
GRINNING,
]);
});
it("preserves the inferred literal type", () => {
const values: ReadonlyArray<"a" | "b"> = ["b", "a", "b"];
expect(uniqueSorted(values)).toEqual(["a", "b"]);
});
});