test(web): handle update readiness metadata

This commit is contained in:
Theo Browne committed 2026-08-01 00:11:26 -07:00
1 parent cd25a3de9a
commit da8ebd3fcd
1 file changed
+9 -7
+9 -7
View File
@@ -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