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

const componentPath = path.resolve(
  __dirname,
  "../../src/views/ccdiCreditInfo/index.vue"
);
const source = fs.readFileSync(componentPath, "utf8");

assert(!source.includes("maintained:"), "征信维护页面不应再维护 maintained 查询参数");

assert(
  !source.includes('label="是否已维护"'),
  "征信维护页面不应再展示是否已维护筛选项"
);

assert(!source.includes('value="1"'), "征信维护页面不应再内置已维护默认筛选");

console.log("credit-info-maintained-filter test passed");
