History

feat: add headless `t3 connect` setup for SSH hosts (#3749)

Theo Browne committed 3 months ago

Commit 7a820ab1 parent 53e3c9835 files · +3017 −144Browse files

Showing the changes to apps/server/src/cloud/cliAuthHtml.test.ts (1 of 35 files). Show all

Unified · Split

apps/server/src/cloud/cliAuthHtml.test.ts+13−0
@@ -0,0 +1,13 @@
1import { expect, it } from "@effect/vitest";
2
3import { renderLoopbackAuthorizationCompleteHtml } from "./cliAuthHtml.ts";
4
5it("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});

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