import { describe, it, expect } from 'vitest';
import { router } from '../../resources/js/router';

describe('Router — page transition meta', () => {
    it('every authenticated route declares transition meta', () => {
        const routes = router.getRoutes();
        const auth = routes.filter((r) => r.meta?.layout === 'app');
        expect(auth.length).toBeGreaterThan(0);
        for (const r of auth) {
            expect(r.meta?.transition, `${String(r.name)} missing meta.transition`).toBe('ld-route-fadeup');
        }
    });
});
