26 lines
648 B
JavaScript
26 lines
648 B
JavaScript
|
|
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"
|
||
|
|
);
|
||
|
|
|
||
|
|
[
|
||
|
|
"姓名",
|
||
|
|
"身份证号",
|
||
|
|
"所属部门",
|
||
|
|
"家庭总年收入",
|
||
|
|
"家庭总资产",
|
||
|
|
"家庭总负债",
|
||
|
|
"风险情况",
|
||
|
|
"操作",
|
||
|
|
"查看详情",
|
||
|
|
"el-table",
|
||
|
|
"el-table-column",
|
||
|
|
].forEach((token) => assert(source.includes(token), token));
|
||
|
|
|
||
|
|
assert(source.includes("loading"), "列表区块应接收加载状态");
|
||
|
|
assert(source.includes("rows"), "列表区块应消费列表数据");
|