fix: show comprehensive training in top navigation
parent
98a7bfe620
commit
0b3ce76216
@ -0,0 +1,16 @@
|
|||||||
|
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");
|
||||||
Loading…
Reference in New Issue