aboutsummaryrefslogtreecommitdiffstats
path: root/frontend-vanilla/src/main.test.ts
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-15 20:17:51 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-15 20:17:51 -0800
commitd98873787ec40938a4fafdb9bee562b494428f71 (patch)
treef2e4794b6ec73c19d138819be72a19cab97ae913 /frontend-vanilla/src/main.test.ts
parent2d48202fa547e94f21662d63a3ff5d04c4fe8f2c (diff)
downloadneko-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.ts8
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);
+ });
});