搭建结果总览页面骨架
This commit is contained in:
20
ruoyi-ui/tests/unit/preliminary-check-layout.test.js
Normal file
20
ruoyi-ui/tests/unit/preliminary-check-layout.test.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const componentPath = path.resolve(
|
||||
__dirname,
|
||||
"../../src/views/ccdiProject/components/detail/PreliminaryCheck.vue"
|
||||
);
|
||||
const source = fs.readFileSync(componentPath, "utf8");
|
||||
|
||||
[
|
||||
"OverviewStats",
|
||||
"RiskPeopleSection",
|
||||
"RiskModelSection",
|
||||
"RiskDetailSection",
|
||||
"pageState",
|
||||
"mockOverviewData",
|
||||
].forEach((token) => {
|
||||
assert(source.includes(token), `结果总览入口缺少结构: ${token}`);
|
||||
});
|
||||
Reference in New Issue
Block a user