From 8018f9e016a934fe68174ddfa6e7e735956a4c54 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Wed, 12 Aug 2026 22:17:55 -0500 Subject: [PATCH] test(desktop): shipped sidebar defaults now include the preview line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The inbox card's preview ships on, so the default row-meta contract is ['preview', 'updated'] — the reset test pins the new shipped view. --- apps/desktop/src/store/layout-sidebar-view.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/store/layout-sidebar-view.test.ts b/apps/desktop/src/store/layout-sidebar-view.test.ts index 0dd7265e577e9..7c675667e6ddc 100644 --- a/apps/desktop/src/store/layout-sidebar-view.test.ts +++ b/apps/desktop/src/store/layout-sidebar-view.test.ts @@ -19,10 +19,10 @@ beforeEach(() => { }) describe('the sidebar as it ships', () => { - it('groups by date, sorts by recency, and pins the timestamp', () => { + it('groups by date, sorts by recency, and pins the timestamp and preview', () => { expect($sidebarGrouping.get()).toBe('date') expect($sidebarOrdering.get()).toBe('updated') - expect($sidebarRowMeta.get()).toEqual(['updated']) + expect($sidebarRowMeta.get()).toEqual(['preview', 'updated']) }) it('offers no reset until something actually moves off the defaults', () => { @@ -44,7 +44,7 @@ describe('the sidebar as it ships', () => { expect($sidebarGrouping.get()).toBe('date') expect($sidebarOrdering.get()).toBe('updated') - expect($sidebarRowMeta.get()).toEqual(['updated']) + expect($sidebarRowMeta.get()).toEqual(['preview', 'updated']) expect($sidebarViewCustomized.get()).toBe(false) })