Skip to content

The agent that grows with you

test(desktop): pass the pin-write fence into the Show-all order assertion

Jeremy McKeehen4ca1f532be3e
diff --git a/apps/desktop/src/app/chat/sidebar/session-index.test.ts b/apps/desktop/src/app/chat/sidebar/session-index.test.ts
index 5a0d6af7096..033ee424426 100644
--- a/apps/desktop/src/app/chat/sidebar/session-index.test.ts
+++ b/apps/desktop/src/app/chat/sidebar/session-index.test.ts
@@ -130,14 +130,20 @@ describe('resolvePinnedSessions', () => {
]
const index = buildSessionByAnyId(sessions, [], [])
- expect(resolvePinnedSessions(['foreign', 'local'], index, sessions).map(s => s.id)).toEqual(['foreign', 'local'])
+ expect(resolvePinnedSessions(['foreign', 'local'], index, sessions, settled).map(s => s.id)).toEqual([
+ 'foreign',
+ 'local'
+ ])
const clicked = [
row('foreign', { last_active: 99, pinned: true, profile: 'k9' }),
row('local', { last_active: 50, pinned: true, profile: 'default' })
]
- expect(resolvePinnedSessions(['foreign', 'local'], index, clicked).map(s => s.id)).toEqual(['foreign', 'local'])
+ expect(resolvePinnedSessions(['foreign', 'local'], index, clicked, settled).map(s => s.id)).toEqual([
+ 'foreign',
+ 'local'
+ ])
})
it('ignores rows from a backend that predates the pinned flag', () => {