test(web): handle update readiness metadata
This commit is contained in:
1 file changed
+9
-7
@@ -73,13 +73,15 @@ export async function installEnvironmentHttpTest(scenario: EnvironmentHttpTestSc
|
||||
Effect.provide([
|
||||
NodeHttpServer.layerHttpServices,
|
||||
HttpApiBuilder.group(EnvironmentHttpApi, "metadata", (handlers) =>
|
||||
handlers.handle(
|
||||
"descriptor",
|
||||
Effect.fn("test.environment.metadata.descriptor")(function* () {
|
||||
calls.descriptor += 1;
|
||||
return yield* scenario.descriptor?.() ?? unexpectedEndpoint("metadata.descriptor");
|
||||
}),
|
||||
),
|
||||
handlers
|
||||
.handle(
|
||||
"descriptor",
|
||||
Effect.fn("test.environment.metadata.descriptor")(function* () {
|
||||
calls.descriptor += 1;
|
||||
return yield* scenario.descriptor?.() ?? unexpectedEndpoint("metadata.descriptor");
|
||||
}),
|
||||
)
|
||||
.handle("ready", () => unexpectedEndpoint("metadata.ready")),
|
||||
),
|
||||
HttpApiBuilder.group(EnvironmentHttpApi, "auth", (handlers) =>
|
||||
handlers
|
||||
|
||||
Reference in new issue
Block a user