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"
);

[
  "getOverviewAbnormalAccountPeople",
  "abnormalAccountLoading",
  "abnormalAccountPageNum",
  "abnormalAccountPageSize",
  "abnormalAccountTotal",
  "abnormalAccountList",
  "handleAbnormalAccountPageChange",
  "loadAbnormalAccountPeople",
  ":page-sizes=\"riskDetailPageSizeOptions\"",
  "layout=\"total, sizes, prev, pager, next, jumper\"",
  "pageSize: this.abnormalAccountPageSize",
  "this.abnormalAccountPageSize = pageInfo.limit || this.abnormalAccountPageSize",
].forEach((token) => assert(source.includes(token), token));
