Files
yaak-mountain-loop/apps/yaak-proxy/lib/firstRun.test.ts
T
Gregory SchierandClaude Opus 5.5 b0425069f4 Yaak Proxy: HTTPS decryption UI, and Info and Body in the card's tabs
The strip, quiet encrypted rows, warning rows for refused handshakes, the
encrypted card with named actions, trust at the first Decrypt, the toast
with Undo and Reconnect, the pill's Decrypt everything switch, Settings'
Decryption section, the Encrypted sidebar row, and two-step setup. Both
body tabs read Body with a type badge; Info leads the request half with
the timeline folded in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 22:30:40 -07:00

24 lines
822 B
TypeScript

import { describe, expect, test } from "vite-plus/test";
import { setupIncomplete } from "./firstRun";
describe("setupIncomplete", () => {
const done = { systemProxySupported: true, systemProxyEverOn: true };
test("is incomplete until the system proxy has been on once", () => {
expect(setupIncomplete({ ...done, systemProxyEverOn: false })).toBe(true);
expect(setupIncomplete(done)).toBe(false);
});
test("needs no system proxy where there is none", () => {
expect(
setupIncomplete({ ...done, systemProxySupported: false, systemProxyEverOn: false }),
).toBe(false);
});
test("waits for the system proxy to be read, so the card does not flash", () => {
expect(setupIncomplete({ ...done, systemProxySupported: null, systemProxyEverOn: false })).toBe(
false,
);
});
});