完成专项核查家庭资产负债实现
This commit is contained in:
16
ruoyi-ui/tests/unit/special-check-detail-expand.test.js
Normal file
16
ruoyi-ui/tests/unit/special-check-detail-expand.test.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const sectionSource = fs.readFileSync(
|
||||
path.resolve(__dirname, "../../src/views/ccdiProject/components/detail/FamilyAssetLiabilitySection.vue"),
|
||||
"utf8"
|
||||
);
|
||||
|
||||
assert(sectionSource.includes("expandedStaffIdCard"), "缺少当前展开员工状态");
|
||||
assert(sectionSource.includes("detailCache"), "缺少详情缓存");
|
||||
assert(sectionSource.includes("getFamilyAssetLiabilityDetail"), "首次展开应请求详情接口");
|
||||
assert(sectionSource.includes("查看详情"), "缺少详情操作入口");
|
||||
assert(!sectionSource.includes("el-dialog"), "不应使用弹窗详情");
|
||||
assert(!sectionSource.includes("el-drawer"), "不应使用抽屉详情");
|
||||
assert(!sectionSource.includes("$router"), "不应通过路由跳转查看详情");
|
||||
Reference in New Issue
Block a user