(fn: () => Promise<any>)
| 281 | } |
| 282 | |
| 283 | async function expectValid(fn: () => Promise<any>) { |
| 284 | await expect(fn()).resolves.not.toThrow() |
| 285 | } |
| 286 | |
| 287 | function expectForbidden(fn: () => Promise<any>) { |
| 288 | return expect(fn()).rejects.toThrow(ZErrorCode.forbidden) |
no test coverage detected
searching dependent graphs…