完成招聘双Sheet导入改造
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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");
|
||||
Reference in New Issue
Block a user