const assert = require("assert");
const fs = require("fs");
const path = require("path");

const source = fs.readFileSync(
  path.resolve(
    __dirname,
    "../../src/views/ccdiProject/components/detail/PreliminaryCheck.vue"
  ),
  "utf8"
);

assert(source.includes("risk-overview-card"), "结果总览入口缺少统一风险总览容器");
assert(source.includes("<overview-stats :summary=\"currentData.summary\" />"), "风险总览卡片应先渲染统计区");
assert(source.includes("<risk-people-section"), "风险总览卡片应包含风险人员区");
