test(client): align resize fixtures and restore branch coverage
This commit is contained in:
1 parent
fad9e27706
commit
f6966f8fab
6 files changed
+33
-10
No files matched your search
@@ -393,7 +393,7 @@ function paginate(
|
||||
events: readonly SessionEvent[],
|
||||
beforeSeq: SessionLogOffsetType | undefined,
|
||||
maxMessages: number,
|
||||
throughSeq: SessionSeqCursor = events.at(-1)?.seq ?? -1,
|
||||
throughSeq: SessionSeqCursor,
|
||||
turnWindow?: SessionPageRequest['turnWindow'],
|
||||
): { readonly events: SessionEvent[]; readonly hasMore: boolean } {
|
||||
const end = SessionLogOffset(Math.min(throughSeq + 1, beforeSeq ?? throughSeq + 1))
|
||||
|
||||
Reference in new issue
Block a user