Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit a599fb425d13be58785551f2b2a343821837e34b
parent 9e5556d557e41b49e6619e44bcf9a09bf8436cba
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 16 Nov 2026 10:53:00 -0500

cookieStatus test: neutral fixture paths

The fixture home is /home/someone (drawn as /home/user), and the privacy
assertion looks for that name.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mcommon/lib/cookieStatus.test.ts | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/common/lib/cookieStatus.test.ts b/common/lib/cookieStatus.test.ts @@ -19,8 +19,8 @@ const age = (service: "rumble" | "youtube" | "odysee", over: Partial<BrowserCook // The privacy displayers, as settings.privacy would draw them. const display = { - path: (p: string) => p.replace("/home/user", "/home/user"), - text: (s: string) => s.replace("/home/user", "/home/user"), + path: (p: string) => p.replace("/home/someone", "/home/user"), + text: (s: string) => s.replace("/home/someone", "/home/user"), }; function input(over: Partial<CookieStatusInput> = {}): CookieStatusInput { @@ -28,13 +28,13 @@ function input(over: Partial<CookieStatusInput> = {}): CookieStatusInput { now: NOW, alerts: { alerts: [], pending: [] }, state: emptyServiceCookieState(), - x: { source: "profile", profileDir: "/home/user/t/.x-session/profile", hasProfile: true }, + x: { source: "profile", profileDir: "/home/someone/t/.x-session/profile", hasProfile: true }, ytdlp: { rumble: { spec: "firefox", specFrom: "settings", age: age("rumble") }, youtube: { spec: "firefox", specFrom: "settings", age: age("youtube") }, odysee: { spec: "firefox", specFrom: "settings", age: age("odysee") }, }, - archive: { dir: "/home/user/t/.archive-session", hasProfile: false }, + archive: { dir: "/home/someone/t/.archive-session", hasProfile: false }, forums: [], running: {}, display, @@ -62,7 +62,7 @@ test("the fixed rows, in order, with paths drawn through the displayers", () => assert.deepEqual(p.rows.map((r) => r.service), ["x", "rumble", "youtube", "odysee", "archive.today"]); assert.equal(row(p, "x").source, "Connected profile (/home/user/t/.x-session/profile)"); assert.equal(row(p, "archive.today").source, "Archive profile (/home/user/t/.archive-session)"); - assert.doesNotMatch(JSON.stringify(p), /user/); + assert.doesNotMatch(JSON.stringify(p), /someone/); }); test("X with a connected profile: Refresh cookies, the jar's age and its limit", () => { @@ -95,7 +95,7 @@ test("X with no profile: Connect, said to open on the editor's machine", () => { test("X with the browser login: open x.com, then Check again", () => { const x = row( - buildCookieStatus(input({ x: { source: "browser", browserSpec: "firefox:/home/user/ff", profileDir: "/p", hasProfile: false } })), + buildCookieStatus(input({ x: { source: "browser", browserSpec: "firefox:/home/someone/ff", profileDir: "/p", hasProfile: false } })), "x", ); assert.deepEqual(x.button, { action: "recheck", label: "Check again" }); @@ -160,7 +160,7 @@ test("forum hosts: from the profiles and from the state, sorted; Connect needs a input({ state, forums: [ - { host: "kiwifarms.st", dir: "/home/user/t/.forum-session/kiwifarms.st", hasProfile: true, connectedAt: "2026-11-15T10:00:00Z", cleared: true }, + { host: "kiwifarms.st", dir: "/home/someone/t/.forum-session/kiwifarms.st", hasProfile: true, connectedAt: "2026-11-15T10:00:00Z", cleared: true }, { host: "forum.example.org", dir: "/d", hasProfile: true }, ], }),