源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, test } from "bun:test";
|
||||
|
||||
const sidebar = readFileSync(
|
||||
fileURLToPath(new URL("../src/react-app/domains/session/sidebar/app-sidebar.tsx", import.meta.url)),
|
||||
"utf8",
|
||||
);
|
||||
|
||||
describe("dashboard sidebar destination", () => {
|
||||
test("appears immediately after session search and before the other destinations", () => {
|
||||
const search = sidebar.indexOf("props.onOpenSessionSearch ?");
|
||||
const dashboard = sidebar.indexOf("props.onOpenDashboard ?", search);
|
||||
const automations = sidebar.indexOf("props.onOpenAutomations ?", search);
|
||||
|
||||
expect(search).toBeGreaterThan(-1);
|
||||
expect(dashboard).toBeGreaterThan(search);
|
||||
expect(dashboard).toBeLessThan(automations);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user