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"]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -90,14 +90,6 @@ describe("jsonValueSchema depth bound", () => {
|
||||
).toBe(false);
|
||||
expect(jsonValueSchema.safeParse({ a: 1n }).success).toBe(false);
|
||||
});
|
||||
|
||||
it("accepts ordinary nested JSON", () => {
|
||||
expect(
|
||||
jsonValueSchema.safeParse({
|
||||
list: [1, "two", null, true, { deep: { further: [{}] } }],
|
||||
}).success,
|
||||
).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
it("preserves prototype-named members without prototype mutation", () => {
|
||||
|
||||
@@ -82,14 +82,4 @@ describe("process observation vocabulary", () => {
|
||||
expect(observations[3]?.captured_at_ms).toBeNull();
|
||||
expect(observations[4]?.captured_at_ms).toBeNull();
|
||||
});
|
||||
|
||||
it("returns no observation for a missing collection record", () => {
|
||||
expect(
|
||||
projectProcessObservation(capture, {
|
||||
collection: "frames",
|
||||
index: 1,
|
||||
capture_order: 10,
|
||||
}),
|
||||
).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user