feat(M10-B): 完成可复算经营报表与日汇总
This commit is contained in:
@@ -24,11 +24,11 @@ if (!distOnly) {
|
||||
assert.doesNotMatch(app, /import\s+(?!AdminLoginPanel\b)\w+Panel\s+from/);
|
||||
|
||||
const router = read('admin/src/router.ts');
|
||||
for (const path of ['/overview', '/stores', '/orders', '/products', '/notifications', '/payments', '/third-party',
|
||||
for (const path of ['/overview', '/stores', '/orders', '/products', '/notifications', '/reports', '/payments', '/third-party',
|
||||
'/people', '/cleaning', '/devices', '/apps', '/content', '/franchise', '/system']) {
|
||||
assert.match(read('admin/src/navigation.mjs'), new RegExp(`path: '${path.replace('/', '\\/')}'`));
|
||||
}
|
||||
assert.equal((router.match(/\(\) => import\('/g) || []).length, 14);
|
||||
assert.equal((router.match(/\(\) => import\('/g) || []).length, 15);
|
||||
assert.match(router, /router\.beforeEach/);
|
||||
assert.match(router, /isNavigationAllowed/);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user