Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/sections/webhooks/webhooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,4 @@ describe("webhooks plan", () => {
],
]);
});

test("the read port exposes exactly the list role in its denied posture", () => {
const ctx = planContext(webhooksSection, new MockApi({}), REPO);
expect(Object.keys(ctx.read)).toEqual(["list"]);
// @ts-expect-error a write role is not a read: the port has no `create`
ctx.read.create;
// @ts-expect-error nor an `updateConfig`
ctx.read.updateConfig;
// @ts-expect-error a "denied" primary read offers no 404-tolerant helper
ctx.read.list.probeAbsent;
});
});
Loading