Skip to content

The agent that grows with you

test(desktop): shipped sidebar defaults now include the preview line

Brooklyn Nicholson8018f9e016a9
diff --git a/apps/desktop/src/store/layout-sidebar-view.test.ts b/apps/desktop/src/store/layout-sidebar-view.test.ts
index 0dd7265e577..7c675667e6d 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)
})