const assert = require("assert");
const fs = require("fs");
const path = require("path");

const componentPath = path.resolve(
  __dirname,
  "../../src/layout/components/Navbar.vue"
);
const source = fs.readFileSync(componentPath, "utf8");

assert(!source.includes("源码地址"), "导航栏不应继续展示源码地址入口");
assert(!source.includes("文档地址"), "导航栏不应继续展示文档地址入口");
assert(
  !source.includes("RuoYiGit") && !source.includes("RuoYiDoc"),
  "导航栏不应继续注册源码和文档入口组件"
);

console.log("navbar-entry-links test passed");
