21 lines
501 B
JavaScript
21 lines
501 B
JavaScript
|
|
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}`);
|
||
|
|
});
|