Skip to content

Commit 75823d4

Browse files
wpfleger96Hayt
andcommitted
Expect the built-in server's automatic Builderlab sign-in in the Vite config test
Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz>
1 parent e80e4d7 commit 75823d4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/features/communities/broker-config.test.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,11 @@ it("keeps the development broker's Builderlab sign-in for a pinned viewer withou
166166
};
167167
// Pinned dev server: broker live, native NIP-FI off, as on main.
168168
expect(await define(viewer, "serve")).toEqual(['"1"', '"0"']);
169-
// Unpinned dev server and any build: the built-in NIP-FI server.
170-
expect(await define("", "serve")).toEqual(['"0"', '"1"']);
171-
expect(await define(viewer, "build")).toEqual(['"0"', '"1"']);
172-
// An added server wins over the broker.
169+
// Unpinned dev server and any vanilla build: the built-in server, whose
170+
// Builderlab sign-in is NIP-FI only where the server offers it.
171+
expect(await define("", "serve")).toEqual(['"0"', '"auto"']);
172+
expect(await define(viewer, "build")).toEqual(['"0"', '"auto"']);
173+
// An added server wins over the broker and is NIP-FI only.
173174
vi.stubEnv(
174175
"BUZZ_BUILD_FEDERATED_IDENTITY_CONFIG",
175176
'{"identityOrigin":"https://block.builderlab.xyz","apiBasePath":"/api/goose/"}',

0 commit comments

Comments
 (0)