(wire: string)
| 27 | it.effect("strict events-mode decoding omits an absent event ID", () => |
| 28 | Effect.gen(function*() { |
| 29 | const decode = (wire: string) => |
| 30 | HttpApiClient.makeWith( |
| 31 | StreamingApi.annotate(HttpApi.ParseOptions, { onExcessProperty: "error" }), |
| 32 | { baseUrl: "http://test", httpClient: clientFromResponse(() => new Response(textStream([wire]))) } |
| 33 | ).pipe(Effect.flatMap((client) => client.test.events({})), Effect.flatMap(Stream.runCollect)) |
| 34 | |
| 35 | const error = yield* Effect.flip(decode("id: 1\nevent: person\ndata: hello\n\n")) |
| 36 | assert.ok(Schema.isSchemaError(error)) |
no test coverage detected