Files
ccdi/ruoyi-ui/tests/unit/project-analysis-dialog-abnormal-tab.test.js

51 lines
1.2 KiB
JavaScript
Raw Normal View History

const assert = require("assert");
const fs = require("fs");
const path = require("path");
const dialog = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/ProjectAnalysisDialog.vue"
),
"utf8"
);
const abnormalTab = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/ProjectAnalysisAbnormalTab.vue"
),
"utf8"
);
[
"<project-analysis-abnormal-tab",
':detail-data="dialogData.abnormalDetail"',
"source-summary",
].forEach((token) => assert(dialog.includes(token), token));
[
"detailData.groups",
'group.groupType === "BANK_STATEMENT"',
'group.groupType === "OBJECT"',
"group.groupName",
"statementPageSize: 5",
"statementPageMap",
"slice(startIndex, startIndex + this.statementPageSize)",
"<el-pagination",
':page-size="statementPageSize"',
'@current-change="handleStatementPageChange(group, $event)"',
"交易时间",
"本方账户",
"对方账户",
"摘要/交易类型",
"异常标签",
"交易金额",
"title",
"subtitle",
2026-03-25 16:58:55 +08:00
"异常原因快照",
"reasonDetail",
"summary",
"extraFields",
2026-03-25 17:03:14 +08:00
"grid-template-columns: minmax(0, 1fr)",
].forEach((token) => assert(abnormalTab.includes(token), token));