(id: string, pattern: string, action: "approve" | "require_approval" | "block")
| 204 | |
| 205 | describe("effectivePolicyFromSorted", () => { |
| 206 | const POL = (id: string, pattern: string, action: "approve" | "require_approval" | "block") => ({ |
| 207 | id: PolicyId.make(id), |
| 208 | pattern, |
| 209 | action, |
| 210 | }); |
| 211 | |
| 212 | it("returns user policy when one matches", () => { |
| 213 | const result = effectivePolicyFromSorted( |