mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-13 12:13:42 +01:00
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>
24 lines
822 B
TypeScript
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,
|
|
);
|
|
});
|
|
});
|