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

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

[
  "员工姓名或工号",
  "部门",
  "任意触发",
  "同时触发",
].forEach((token) => assert(source.includes(token), token));

[
  "筛查模型",
  "预警类型",
].forEach((token) => assert(!source.includes(token), token));
