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

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

[
  "getBankStatementDetail",
  "detailVisible",
  "handleViewDetail",
  "this.download(",
  "ccdi/project/overview/risk-details/export",
  "原始文件",
  "命中异常标签",
  "formatOriginalFileName",
  "formatOriginalFileUploadTime",
  "mapRiskLevelToTagType",
  "hitTags",
].forEach((token) => assert(source.includes(token), token));
