0eb7c32585
Frontend source is needed for development/building the SPA. Only Node.js runtime server code should be removed.
19 lines
876 B
TypeScript
19 lines
876 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
|
|
describe('CheckinLog mobile layout', () => {
|
|
it('uses the shared responsive filter scaffold for mobile filters', () => {
|
|
const source = readFileSync(resolve(process.cwd(), 'src/web/pages/CheckinLog.tsx'), 'utf8');
|
|
expect(source).toMatch(/import\s+ResponsiveFilterPanel\s+from\s+['"]\.\.\/components\/ResponsiveFilterPanel\.js['"]/);
|
|
expect(source).toContain('<ResponsiveFilterPanel');
|
|
});
|
|
|
|
it('uses the shared mobile card header and footer action slots', () => {
|
|
const source = readFileSync(resolve(process.cwd(), 'src/web/pages/CheckinLog.tsx'), 'utf8');
|
|
expect(source).toContain('const isMobile = useIsMobile();');
|
|
expect(source).toContain('headerActions={');
|
|
expect(source).toContain('footerActions={');
|
|
});
|
|
});
|