test: align approval and pairing expectations

This commit is contained in:
Peter Steinberger
2026-04-23 20:01:17 +01:00
parent b122a325cd
commit 8a4761fe95
2 changed files with 5 additions and 5 deletions

View File

@@ -118,13 +118,13 @@ function makeForeignChannelApprovalRequest(params: {
}
describe("matrix exec approvals", () => {
it("auto-enables when approvers resolve and disables only when forced off", () => {
it("requires enablement and approvers before enabling the client", () => {
expect(isMatrixExecApprovalClientEnabled({ cfg: buildConfig() })).toBe(false);
expect(
isMatrixExecApprovalClientEnabled({
cfg: buildConfig(undefined, { dm: { allowFrom: ["@owner:example.org"] } }),
}),
).toBe(true);
).toBe(false);
expect(isMatrixExecApprovalClientEnabled({ cfg: buildConfig({ enabled: true }) })).toBe(false);
expect(
isMatrixExecApprovalClientEnabled({