diff --git a/src/renderer/components/layout/StatusBar.tsx b/src/renderer/components/layout/StatusBar.tsx new file mode 100644 index 0000000..582b253 --- /dev/null +++ b/src/renderer/components/layout/StatusBar.tsx @@ -0,0 +1,14 @@ +export function StatusBar() { + return ( + + ); +} \ No newline at end of file diff --git a/tests/component/layout/StatusBar.test.tsx b/tests/component/layout/StatusBar.test.tsx new file mode 100644 index 0000000..bc0b7f5 --- /dev/null +++ b/tests/component/layout/StatusBar.test.tsx @@ -0,0 +1,10 @@ +import { describe, it, expect } from 'vitest'; +import { render, screen } from '@testing-library/react'; +import { StatusBar } from '@/components/layout/StatusBar'; + +describe('StatusBar', () => { + it('renders zero word count when no file is open', () => { + render(); + expect(screen.getByText(/0 words/i)).toBeInTheDocument(); + }); +}); \ No newline at end of file