History

test(web): handle update readiness metadata

Theo Browne committed 3 months ago

Commit da8ebd31 parent cd25a3d1 file · +9 −7Browse files

Unified · Split

apps/web/test/environmentHttpTest.ts+9−7
@@ -73,13 +73,15 @@ export async function installEnvironmentHttpTest(scenario: EnvironmentHttpTestSc · 72 unmodified lines
73 Effect.provide([73 Effect.provide([
74 NodeHttpServer.layerHttpServices,74 NodeHttpServer.layerHttpServices,
75 HttpApiBuilder.group(EnvironmentHttpApi, "metadata", (handlers) =>75 HttpApiBuilder.group(EnvironmentHttpApi, "metadata", (handlers) =>
76 handlers.handle(76 handlers
77 "descriptor",77 .handle(
78 Effect.fn("test.environment.metadata.descriptor")(function* () {78 "descriptor",
79 calls.descriptor += 1;79 Effect.fn("test.environment.metadata.descriptor")(function* () {
80 return yield* scenario.descriptor?.() ?? unexpectedEndpoint("metadata.descriptor");80 calls.descriptor += 1;
81 }),81 return yield* scenario.descriptor?.() ?? unexpectedEndpoint("metadata.descriptor");
82 ),82 }),
83 )
84 .handle("ready", () => unexpectedEndpoint("metadata.ready")),
83 ),85 ),
84 HttpApiBuilder.group(EnvironmentHttpApi, "auth", (handlers) =>86 HttpApiBuilder.group(EnvironmentHttpApi, "auth", (handlers) =>
85 handlers87 handlers