重构历史项目导入弹窗
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
const dialogPath = path.resolve(__dirname, "../../src/views/ccdiProject/components/ImportHistoryDialog.vue");
|
||||
const source = fs.readFileSync(dialogPath, "utf8");
|
||||
|
||||
assert(source.includes("listHistoryProjects("), "应通过真实历史项目接口加载数据");
|
||||
assert(source.includes("importFromHistory("), "应通过真实导入接口提交");
|
||||
assert(source.includes("this.$emit('submit', response.data)"), "提交成功后应向父组件返回新项目数据");
|
||||
|
||||
console.log("project-import-history-dialog-behavior test passed");
|
||||
Reference in New Issue
Block a user