(value: Record<string, unknown>, allowed: Set<string>, label: string)
| 111 | ]); |
| 112 | |
| 113 | function expectKeysMatch(value: Record<string, unknown>, allowed: Set<string>, label: string) { |
| 114 | for (const key of Object.keys(value)) { |
| 115 | expect(allowed.has(key), `${label}: unexpected extra field "${key}"`).toBe(true); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | function expectRequired( |
| 120 | value: Record<string, unknown>, |
no outgoing calls
no test coverage detected