22 lines
557 B
JavaScript
22 lines
557 B
JavaScript
const assert = require("assert");
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
const componentPath = path.resolve(
|
|
__dirname,
|
|
"../../src/views/ccdiStaffRecruitment/index.vue"
|
|
);
|
|
const source = fs.readFileSync(componentPath, "utf8");
|
|
|
|
[
|
|
'label="失败Sheet"',
|
|
'label="失败行号"',
|
|
"scope.row.sheetName",
|
|
"scope.row.sheetRowNum",
|
|
"失败原因"
|
|
].forEach((token) => {
|
|
assert(source.includes(token), `招聘失败弹窗缺少双Sheet定位列: ${token}`);
|
|
});
|
|
|
|
console.log("staff-recruitment-import-failure-dialog test passed");
|