const assert = require("assert"); const fs = require("fs"); const path = require("path"); const source = fs.readFileSync(path.join(__dirname, "..", "src", "views", "teacherEnd", "score", "index.vue"), "utf8"); assert.match(source, /prop="score"\s+label="参考成绩"/); assert.match(source, /label="实训进度"/); assert.match(source, /formatTrainingProgress/); assert.match(source, /return "--"/); console.log("score reference progress static checks passed");