新增电子试验主文件目录与文件归档

This commit is contained in:
Cheng Zhou
2026-05-28 10:54:13 +08:00
parent 31fcb7e6f2
commit fa961f1391
20 changed files with 2226 additions and 10 deletions
@@ -0,0 +1,21 @@
import { describe, expect, it } from "vitest";
import { readFileSync } from "node:fs";
import { resolve } from "node:path";
const readSource = () => readFileSync(resolve(__dirname, "./EtmfPlaceholder.vue"), "utf8");
describe("EtmfPlaceholder", () => {
it("renders a functional eTMF workspace instead of the generic placeholder", () => {
const source = readSource();
expect(source).toContain("fetchEtmfTree");
expect(source).toContain("fetchEtmfNodeDocuments");
expect(source).toContain("createEtmfDocument");
expect(source).toContain("etmf-tree-panel");
expect(source).toContain("etmf-document-table");
expect(source).toContain("etmf-node-detail");
expect(source).toContain("selectedNode");
expect(source).toContain("statusType");
expect(source).not.toContain("ModulePlaceholder");
});
});