源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)

This commit is contained in:
agent-radar
2026-09-02 01:05:41 +08:00
commit 04bac1f6e2
2200 changed files with 489415 additions and 0 deletions
@@ -0,0 +1,19 @@
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { describe, expect, test } from "bun:test";
const sidebarPath = fileURLToPath(
new URL("../src/react-app/domains/session/sidebar/app-sidebar.tsx", import.meta.url),
);
describe("managed brand header", () => {
test("shows the brand header only when a wordmark is supplied", () => {
const source = readFileSync(sidebarPath, "utf8");
expect(source).toMatch(/\{brandLogoUrl \? \([\s\S]*?data-testid="brand-logo"[\s\S]*?<img/);
expect(source).not.toContain("brand-app-name");
expect(source).not.toContain("useBrandAppName");
expect(source).toMatch(/className="flex h-14 shrink-0 items-center/);
expect(source).toMatch(/className="max-h-9 w-auto max-w-\[140px\] object-contain object-left"/);
});
});