test: prune redundant cases and promote configuration lifecycle coverage
This commit is contained in:
@@ -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"]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user