Files
ccdi/ruoyi-ui/tests/unit/preliminary-check-model-table-columns.test.js

28 lines
631 B
JavaScript
Raw Normal View History

const assert = require("assert");
const fs = require("fs");
const path = require("path");
const source = fs.readFileSync(
path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/RiskModelSection.vue"
),
"utf8"
);
[
'label="工号"',
'prop="staffCode"',
"异常标签",
"hitTagList",
"ruleName",
"tag.modelCode",
'this.$emit("selection-change", this.selectedModelCodes)',
':type="resolveModelTagType(tag)"',
].forEach((token) => assert(source.includes(token), token));
[
'prop="warningType"',
'label="预警类型"',
].forEach((token) => assert(!source.includes(token), token));