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

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

[
  'activeTab: "abnormalDetail"',
  "if (value) {",
  "resetDialogState()",
  'this.activeTab = "abnormalDetail"',
  "handleDialogClosed()",
  "this.fetchDetailData()",
  "this.resetDialogState()",
  "project-analysis-header",
  'class="project-analysis-tabs"',
].forEach((token) => assert(dialog.includes(token), token));
