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

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

[
  "采购事项ID",
  "项目名称",
  "标的物名称",
  "申请人姓名",
  "申请日期",
  "招聘项目编号",
  "招聘项目名称",
  "职位名称",
  "面试官姓名摘要",
  "录用情况",
  "员工姓名",
  "调动类型",
  "调动前部门",
  "调动后部门",
  "调动日期",
  "查看详情",
].forEach((token) => assert(source.includes(token), token));

assert(source.includes("handleDetail"), "缺少详情查看方法");
assert(source.includes("操作"), "缺少操作列");
