fix: test error

This commit is contained in:
DIYgod
2024-03-03 22:21:24 +08:00
parent 1ba7bc25bb
commit b98c99928f
2 changed files with 7 additions and 7 deletions

View File

@@ -43,12 +43,12 @@ for (const dir in maintainerPath) {
}
// 兼容旧版路由
const router = require('../../lib/router.js');
for (const e of router.stack) {
if (!maintainers[e.path]) {
maintainers[e.path] = [];
}
}
// const router = require('../../lib/router.js');
// for (const e of router.stack) {
// if (!maintainers[e.path]) {
// maintainers[e.path] = [];
// }
// }
const maintainer = Object.keys(maintainers)
.sort()