完成专项核查家庭资产负债实现
This commit is contained in:
25
ruoyi-ui/tests/unit/special-check-family-table.test.js
Normal file
25
ruoyi-ui/tests/unit/special-check-family-table.test.js
Normal file
@@ -0,0 +1,25 @@
|
||||
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"), "列表区块应消费列表数据");
|
||||
Reference in New Issue
Block a user