Showing the changes to apps/server/src/cloud/cliAuthHtml.test.ts (1 of 35 files). Show all
Unified · Split
| @@ -0,0 +1,13 @@ | |||
| 1 | import { expect, it } from "@effect/vitest"; | ||
| 2 | |||
| 3 | import { renderLoopbackAuthorizationCompleteHtml } from "./cliAuthHtml.ts"; | ||
| 4 | |||
| 5 | it("renders the branded loopback authorization completion page", () => { | ||
| 6 | const html = renderLoopbackAuthorizationCompleteHtml(); | ||
| 7 | |||
| 8 | expect(html).toContain("T3 Code"); | ||
| 9 | expect(html).not.toContain("Secure terminal handoff"); | ||
| 10 | expect(html).toContain("You're connected"); | ||
| 11 | expect(html).toContain("return to the terminal"); | ||
| 12 | expect(html).toContain('name="viewport"'); | ||
| 13 | }); | ||