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/comprehensive-training-last...

14 lines
528 B
JavaScript

const assert = require("assert");
const fs = require("fs");
const path = require("path");
const sidebar = fs.readFileSync(
path.join(__dirname, "..", "src", "layout", "components", "Sidebar", "index.vue"),
"utf8"
);
const comprehensiveIndex = sidebar.indexOf('title: "综合实训"');
const launchIndex = sidebar.indexOf('title: "产品上线与运营推广"');
assert(comprehensiveIndex > launchIndex, "综合实训应显示在学生端课程导航最后");
console.log("comprehensive-training-last static test passed");