Files
canina/frontend/admin-panel/src/pages/OperationalAuthorization.test.tsx
T
2026-10-27 08:20:33 +00:00

16 lines
723 B
TypeScript

import { describe, expect, it } from 'vitest';
import routes from '../routes/adminRoutes.tsx?raw';
const pages = import.meta.glob('./*.tsx');
// Approvals and manager actions were removed in effe30e. Keep this boundary
// covered without importing the deleted page or restoring its obsolete UI.
describe('operational authorization boundary', () => {
it('does not register removed approvals or manager-action pages', () => {
expect(routes).not.toMatch(/ApprovalsPage|ManagerActionsPage/);
expect(routes).not.toMatch(/path:\s*['"](?:approvals|manager-actions)(?:\/\*)?['"]/);
expect(pages).not.toHaveProperty('./ApprovalsPage.tsx');
expect(pages).not.toHaveProperty('./ManagerActionsPage.tsx');
});
});