feat(layout): finalize p01 and p02 changes
Complete UI foundation and app layout implementation, stabilize container health checks, and archive both OpenSpec changes after verification.
This commit is contained in:
21
frontend/tests/component/topbar.test.ts
Normal file
21
frontend/tests/component/topbar.test.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { resolve } from 'node:path';
|
||||
import TopBar from '../../src/lib/components/layout/TopBar.svelte';
|
||||
|
||||
describe('TopBar component', () => {
|
||||
it('exports a component module', () => {
|
||||
expect(TopBar).toBeDefined();
|
||||
});
|
||||
|
||||
it('includes breadcrumbs, month selector, and user menu', () => {
|
||||
const source = readFileSync(
|
||||
resolve(process.cwd(), 'src/lib/components/layout/TopBar.svelte'),
|
||||
'utf-8'
|
||||
);
|
||||
|
||||
expect(source).toContain('<Breadcrumbs />');
|
||||
expect(source).toContain('<MonthSelector />');
|
||||
expect(source).toContain('<UserMenu />');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user