fix: move comprehensive training to final menu item
parent
bccef8b45e
commit
e93059648b
@ -0,0 +1,13 @@
|
||||
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");
|
||||
Loading…
Reference in New Issue