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