test(sharing): count the MANAGE matrix without the life-event handlers

Life events are owner-only, so their three MANAGE handlers leave the
admitted inventory and the integration matrix's driver counts with it.
This commit is contained in:
Marc-André Bombeck committed 2026-10-08 22:37:57 +02:00
1 parent 8ac64c3e4f
commit 38a69ee950
1 file changed
+3 -3
@@ -282,7 +282,7 @@ const ROUTE_IMPORTS = import.meta.glob<Record<string, unknown>>(
describe("the complete MANAGE handler matrix", () => {
it("starts with a non-empty, exact handler inventory", () => {
expect(ADMITTED_MUTATING_HANDLERS.length).toBe(90);
expect(ADMITTED_MUTATING_HANDLERS.length).toBe(87);
});
});
@@ -2846,13 +2846,13 @@ describe("the conditions the admissions were granted on", () => {
describe("the complete MANAGE handler matrix", () => {
it("registers one strict actor-and-effect driver for every admission", () => {
const expected = ADMITTED_MUTATING_HANDLERS.map(matrixKey).sort();
expect(STRICT_DRIVER_KEYS.size).toBe(90);
expect(STRICT_DRIVER_KEYS.size).toBe(87);
expect([...STRICT_DRIVER_KEYS].sort()).toEqual(expected);
});
it("executes every registered driver through its owned effect and actor audit", () => {
const expected = ADMITTED_MUTATING_HANDLERS.map(matrixKey).sort();
expect(REAL_EFFECT_KEYS.size).toBe(90);
expect(REAL_EFFECT_KEYS.size).toBe(87);
expect([...REAL_EFFECT_KEYS].sort()).toEqual(expected);
});
});