(result: { code: number; data?: any; msg?: string })
| 27 | } |
| 28 | |
| 29 | function createSendResult(result: { code: number; data?: any; msg?: string }) { |
| 30 | const promise = Promise.resolve(result) |
| 31 | return { |
| 32 | on() { |
| 33 | return this |
| 34 | }, |
| 35 | then: promise.then.bind(promise), |
| 36 | catch: promise.catch.bind(promise) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | class FakeForkManager { |
| 41 | calls: ForkCall[] = [] |
no test coverage detected