(rule: RequestPolicyRule, named: NamedRule[] = [])
| 67 | beforeEach(() => resetCounter()); |
| 68 | |
| 69 | const collect = (rule: RequestPolicyRule, named: NamedRule[] = []) => { |
| 70 | const seen: Array<{ kind: string; minApproved: number; path: string }> = []; |
| 71 | walkQuorumRules(rule, namedMap(named), (kind, _approvers, minApproved, path) => { |
| 72 | seen.push({ kind, minApproved, path }); |
| 73 | }); |
| 74 | return seen; |
| 75 | }; |
| 76 | |
| 77 | it('visits Quorum with the configured min_approved', () => { |
| 78 | expect(collect({ Quorum: { approvers: { Any: null }, min_approved: 2 } })).toEqual([ |
no test coverage detected