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
7373 Effect.provide([
7474 NodeHttpServer.layerHttpServices,
7575 HttpApiBuilder.group(EnvironmentHttpApi, "metadata", (handlers) =>
76− handlers.handle(
77− "descriptor",
78− Effect.fn("test.environment.metadata.descriptor")(function* () {
79− calls.descriptor += 1;
80− return yield* scenario.descriptor?.() ?? unexpectedEndpoint("metadata.descriptor");
81− }),
82− ),
76+ handlers
77+ .handle(
78+ "descriptor",
79+ Effect.fn("test.environment.metadata.descriptor")(function* () {
80+ calls.descriptor += 1;
81+ return yield* scenario.descriptor?.() ?? unexpectedEndpoint("metadata.descriptor");
82+ }),
83+ )
84+ .handle("ready", () => unexpectedEndpoint("metadata.ready")),
8385 ),
8486 HttpApiBuilder.group(EnvironmentHttpApi, "auth", (handlers) =>
8587 handlers

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t