You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dianshang-qianduan/tests/score-reference-progress.st...

13 lines
467 B
JavaScript

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");