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/student-top-navigation.stat...

17 lines
434 B
JavaScript

const assert = require("assert");
const fs = require("fs");
const path = require("path");
const navbar = fs.readFileSync(
path.join(__dirname, "..", "src", "layout", "components", "Navbar.vue"),
"utf8"
);
assert.match(
navbar,
/name:\s*studentTopTask\.value\.title/,
"student comprehensive navigation item must provide the name rendered by the top navigation"
);
console.log("student top navigation static test passed");