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

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

["pageState === 'loading'", "pageState === 'empty'", "el-skeleton", "el-empty"].forEach(
  (token) => {
    assert(source.includes(token), `缺少页面状态结构: ${token}`);
  }
);
