(_outcome: unknown)
| 4162 | |
| 4163 | it("passes only the outcome to handlers", () => { |
| 4164 | function handler(_outcome: unknown) { |
| 4165 | // eslint-disable-next-line prefer-rest-params |
| 4166 | return arguments.length |
| 4167 | } |
| 4168 | const options = { onFailure: handler, onSuccess: handler } |
| 4169 | for (const source of [Effect.succeed(1), Effect.fail("error")]) { |
| 4170 | assert.strictEqual(Effect.runSync(Effect.match(source, options)), 1) |
no outgoing calls
no test coverage detected