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}`);
});

assert(source.includes("risk-overview-card"), "结果总览页缺少统一风险总览容器");
assert(source.includes("风险总览"), "结果总览页缺少风险总览标题");
assert(source.includes("border-left: 4px solid #2563eb;"), "主卡片标题应有更强的左侧强调样式");
assert(source.includes("font-size: 20px;"), "主卡片标题字号应提升到 20px");
