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.
|
|
|
|
const assert = require("assert");
|
|
|
|
|
const fs = require("fs");
|
|
|
|
|
|
|
|
|
|
const page = fs.readFileSync("src/views/teacherEnd/score/index.vue", "utf8");
|
|
|
|
|
const api = fs.readFileSync("src/api/teacher.js", "utf8");
|
|
|
|
|
|
|
|
|
|
assert(page.includes("学生姓名"));
|
|
|
|
|
assert(page.includes("AI评测总分"));
|
|
|
|
|
assert(page.includes("老师评分"));
|
|
|
|
|
assert(page.includes("scoreDetailStudent.name"));
|
|
|
|
|
assert(page.includes("scoreDetailStudent.aiTotalScore"));
|
|
|
|
|
assert(page.includes("scoreDetailStudent.teacherScore"));
|
|
|
|
|
assert(page.includes("row.teacherScore = score"));
|
|
|
|
|
assert(api.includes("/api/weight/saveTaskTeacherScore"));
|
|
|
|
|
|
|
|
|
|
console.log("score detail summary static checks passed");
|