From 883c5a7c762bc06a5726b39c22c6a4a673921827 Mon Sep 17 00:00:00 2001 From: archipelago Date: Tue, 6 Oct 2026 03:09:47 -0400 Subject: [PATCH] test: keep navigation regression compatible with frontend target --- .../views/dashboard/__tests__/DashboardMobileNav.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neode-ui/src/views/dashboard/__tests__/DashboardMobileNav.test.ts b/neode-ui/src/views/dashboard/__tests__/DashboardMobileNav.test.ts index ecc71fbf..a967b4b2 100644 --- a/neode-ui/src/views/dashboard/__tests__/DashboardMobileNav.test.ts +++ b/neode-ui/src/views/dashboard/__tests__/DashboardMobileNav.test.ts @@ -45,17 +45,17 @@ describe('mobile navigation clearance across app sessions', () => { await nextTick() expect(wrapper.find('[data-mobile-tab-bar]').exists()).toBe(false) expect(clearance()).toBe('') - expect(observers[0].disconnect).toHaveBeenCalledOnce() + expect(observers[0]!.disconnect).toHaveBeenCalledOnce() height = 88 state.launcher.panelAppId = null await nextTick() expect(wrapper.find('[data-mobile-tab-bar]').exists()).toBe(true) expect(clearance()).toBe('88px') height = 104 - observers.at(-1)!.callback() + observers[observers.length - 1]!.callback() expect(clearance()).toBe('104px') wrapper.unmount() - expect(observers.at(-1)!.disconnect).toHaveBeenCalledOnce() + expect(observers[observers.length - 1]!.disconnect).toHaveBeenCalledOnce() }) it('does not reserve a visible navigation height on desktop', async () => {