diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-15 20:17:51 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-15 20:17:51 -0800 |
| commit | d98873787ec40938a4fafdb9bee562b494428f71 (patch) | |
| tree | f2e4794b6ec73c19d138819be72a19cab97ae913 /frontend-vanilla/src/main.test.ts | |
| parent | 2d48202fa547e94f21662d63a3ff5d04c4fe8f2c (diff) | |
| download | neko-d98873787ec40938a4fafdb9bee562b494428f71.tar.gz neko-d98873787ec40938a4fafdb9bee562b494428f71.tar.bz2 neko-d98873787ec40938a4fafdb9bee562b494428f71.zip | |
Vanilla JS (v3): Add Logout button, 'neko' cat emoji toggle, and mobile responsiveness with backdrop
Diffstat (limited to 'frontend-vanilla/src/main.test.ts')
| -rw-r--r-- | frontend-vanilla/src/main.test.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend-vanilla/src/main.test.ts b/frontend-vanilla/src/main.test.ts index aa0568b..d5681b8 100644 --- a/frontend-vanilla/src/main.test.ts +++ b/frontend-vanilla/src/main.test.ts @@ -246,4 +246,12 @@ describe('main application logic', () => { window.dispatchEvent(new KeyboardEvent('keydown', { key: '/' })); expect(spy).toHaveBeenCalled(); }); + + it('should handle sidebar toggle', () => { + renderLayout(); + const toggleBtn = document.getElementById('sidebar-toggle-btn') as HTMLElement; + const initialVisible = store.sidebarVisible; + toggleBtn.click(); + expect(store.sidebarVisible).toBe(!initialVisible); + }); }); |
