From 2aab1df51417837514241cf7ec83e4e2ce23b6fd Mon Sep 17 00:00:00 2001 From: Vivswan Shah <58091053+Vivswan@users.noreply.github.com> Date: Mon, 21 Sep 2026 19:27:38 -0400 Subject: [PATCH] test(teams): drop the case the contract tests already pin The read-port shape case leaves the section suite. Its runtime assertions are the port's key list and the presence of three helpers, which test/sections/setup-section.test.ts and the registry suite pin generically; its compile-time pins move to the canonical case in test/sections. --- src/sections/teams/teams.test.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/sections/teams/teams.test.ts b/src/sections/teams/teams.test.ts index fc3c8ba6..3c653918 100644 --- a/src/sections/teams/teams.test.ts +++ b/src/sections/teams/teams.test.ts @@ -191,22 +191,6 @@ describe("teams", () => { }); }); - test("the read port exposes the public org probe, the list in its denied posture, and the team probe, never a write", () => { - const ctx = planContext(teamsSection, new MockApi({}), REPO); - expect(Object.keys(ctx.read)).toEqual(["org", "list", "probe"]); - // @ts-expect-error a write role is not a read: the port has no `grant` - ctx.read.grant; - // @ts-expect-error nor a `revoke` - ctx.read.revoke; - // @ts-expect-error a "denied" primary read offers no absent probe: its 404 is a denial - ctx.read.list.probeAbsent; - // @ts-expect-error nor a tolerant call - ctx.read.list.tryCall; - expect(typeof ctx.read.org.probeAbsent).toBe("function"); - expect(typeof ctx.read.probe.probeAbsent).toBe("function"); - expect(typeof ctx.read.list.listAll).toBe("function"); - }); - describe("snapshot", () => { test("reads each listed team's role through the probe, not the listing's permission, so a custom role reads back by name; a probe 404 is noted with both readings", async () => { const api = new MockApi({