(fn: () => Promise<any>)
| 285 | } |
| 286 | |
| 287 | function expectForbidden(fn: () => Promise<any>) { |
| 288 | return expect(fn()).rejects.toThrow(ZErrorCode.forbidden) |
| 289 | } |
| 290 | |
| 291 | function expectBadRequest(fn: () => Promise<any>) { |
| 292 | return expect(fn()).rejects.toThrow(ZErrorCode.bad_request) |
no test coverage detected
searching dependent graphs…