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

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

assert(source.includes("el-tag"), "风险情况应使用标签展示");
assert(source.includes("resolveRiskTagType"), "缺少风险标签类型映射");
assert(source.includes("NORMAL"), "缺少正常风险码映射");
assert(source.includes("RISK"), "缺少存在风险码映射");
assert(source.includes("HIGH"), "缺少高风险码映射");
assert(source.includes("MISSING_INFO"), "缺少缺少信息风险码映射");
