18 lines
642 B
TypeScript
18 lines
642 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { readFileSync } from "node:fs";
|
|
import { resolve } from "node:path";
|
|
|
|
const readIndexHtml = () => readFileSync(resolve(__dirname, "../index.html"), "utf8");
|
|
|
|
describe("app bootstrap shell", () => {
|
|
it("renders a lightweight startup placeholder before Vue mounts", () => {
|
|
const source = readIndexHtml();
|
|
|
|
expect(source).toContain('<div id="app">');
|
|
expect(source).toContain("ctms-boot-splash");
|
|
expect(source).toContain("正在启动 CTMS");
|
|
expect(source).toContain("正在加载系统");
|
|
expect(source).not.toContain("正在加载桌面客户端");
|
|
});
|
|
});
|