(id: string, pattern: string, action: "approve" | "require_approval" | "block")
| 257 | |
| 258 | describe("effectivePolicyFromSorted", () => { |
| 259 | const POL = (id: string, pattern: string, action: "approve" | "require_approval" | "block") => ({ |
| 260 | id: PolicyId.make(id), |
| 261 | pattern, |
| 262 | action, |
| 263 | }); |
| 264 | |
| 265 | it("returns user policy when one matches", () => { |
| 266 | const result = effectivePolicyFromSorted( |