WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

test(web): fix preview test quality — align auth fixture, strengthen } assertion, clarify description (ATB-59)

Malpercio de509970 2eccc5f7

+4 -2
+4 -2
apps/web/src/routes/__tests__/admin-themes.test.tsx
··· 200 200 201 201 function setupAuthenticatedSession(permissions: string[]) { 202 202 mockFetch.mockResolvedValueOnce( 203 - mockResponse({ authenticated: true, did: "did:plc:admin", handle: "admin.test" }) 203 + mockResponse({ authenticated: true, did: "did:plc:forum", handle: "admin.bsky.social" }) 204 204 ); 205 205 mockFetch.mockResolvedValueOnce(mockResponse({ permissions })); 206 206 } ··· 321 321 const html = await res.text(); 322 322 // The injected block-escape value must not appear 323 323 expect(html).not.toContain("red} body"); 324 + // The entire dirty value must be dropped — not just the injected suffix 325 + expect(html).not.toContain("--color-bg"); 324 326 }); 325 327 326 - it("returns a fallback HTML fragment when no tokens are submitted (does not crash)", async () => { 328 + it("returns an empty-token preview fragment when no tokens are submitted (does not crash)", async () => { 327 329 setupAuthenticatedSession([MANAGE_THEMES]); 328 330 329 331 const routes = await loadThemeRoutes();