完成专项核查家庭资产负债实现

This commit is contained in:
wkc
2026-03-24 20:42:56 +08:00
parent 979b905682
commit c1b4514806
38 changed files with 2514 additions and 19 deletions

View File

@@ -0,0 +1,20 @@
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const vueSource = fs.readFileSync(
path.resolve(__dirname, "../../src/views/ccdiProject/components/detail/SpecialCheck.vue"),
"utf8"
);
const mockSource = fs.readFileSync(
path.resolve(__dirname, "../../src/views/ccdiProject/components/detail/specialCheck.mock.js"),
"utf8"
);
["loading", "empty", "loaded"].forEach((state) => {
assert(vueSource.includes(`pageState === "${state}"`) || vueSource.includes(`pageState === '${state}'`), state);
assert(mockSource.includes(`${state}:`), `mock 中缺少 ${state} 状态`);
});
assert(vueSource.includes("el-skeleton"), "加载态应保留骨架屏");
assert(vueSource.includes("el-empty"), "空态应保留空态组件");