fix: log detail panel not showing any message when total count greate… (#10119)

This commit is contained in:
Hash Brown 2024-10-31 16:02:20 +08:00 • committed by GitHub
commit 73f29484e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 288 additions and 2 deletions

View file

@ -255,4 +255,10 @@ describe('build chat item tree and get thread messages', () => {
const threadMessages6_2 = getThreadMessages(tree6, 'ff4c2b43-48a5-47ad-9dc5-08b34ddba61b')
expect(threadMessages6_2).toMatchSnapshot()
})
const partialMessages = (realWorldMessages as ChatItemInTree[]).slice(-10)
const tree7 = buildChatItemTree(partialMessages)
it('should work with partial messages', () => {
expect(tree7).toMatchSnapshot()
})
})