(exit: Exit.Exit<unknown, unknown>, diagnostics: ReadonlyArray<string>)
| 62 | ] |
| 63 | |
| 64 | const assertDie = (exit: Exit.Exit<unknown, unknown>, diagnostics: ReadonlyArray<string>) => { |
| 65 | assert(Exit.isFailure(exit)) |
| 66 | assert.strictEqual(exit.cause.reasons.length, 1) |
| 67 | assert.strictEqual(exit.cause.reasons[0]._tag, "Die") |
| 68 | const diagnostic = String(Cause.squash(exit.cause)) |
| 69 | for (const expected of diagnostics) { |
| 70 | assert.include(diagnostic, expected) |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | for (const { invalidPayload, name, serialization, unknownTag } of cases) { |
| 75 | const ClientProtocol = RpcClient.layerProtocolHttp({ |
no test coverage detected