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

const mockSource = fs.readFileSync(
  path.resolve(
    __dirname,
    "../../src/views/ccdiProject/components/detail/preliminaryCheck.mock.js"
  ),
  "utf8"
);

assert(mockSource.includes('label: "高风险"'), "仪表盘中的风险人数应改为高风险");
assert(!mockSource.includes('label: "风险人数"'), "风险人数文案应被替换");
