const assert = require("node:assert/strict"); const fs = require("node:fs"); const path = require("node:path"); const test = require("node:test"); const source = fs.readFileSync(path.join(__dirname, "../src/views/product/market-opportunity-selection.vue"), "utf8"); test("第四步提供可预览的数据可视化结果图上传", () => { assert.match(source, /accept="image\/png,image\/jpeg,image\/webp"/); assert.match(source, / { assert.match(source, /function downloadVisualizationTemplate\(\)/); assert.match(source, /"日综合得分录入"/); assert.match(source, /AVERAGEIF\(/); assert.match(source, /MAXIFS\(/); assert.match(source, /MINIFS\(/); assert.match(source, /MAXIFS\([\s\S]*?,"<>"/); assert.match(source, /MINIFS\([\s\S]*?,"<>"/); assert.match(source, /XLSX\.writeFile\(workbook, "市场机会识别与选品-数据可视化模板\.xlsx"\)/); });