test(stats): align large-session newOffset with lenient parser (PR #3735 merge)

This commit is contained in:
can1357
2026-06-29 16:53:40 +02:00
parent faf2b4111e
commit b0420f1053
@@ -62,7 +62,9 @@ describe("large session parsing", () => {
const result = await parseSessionFile(sessionFile);
expect(result.newOffset).toBe(entry.length * entryCount - 1);
// The lenient line scanner consumes the entire file (every line is `\n`-terminated),
// so the resume offset is the full byte length rather than the byte before the final newline.
expect(result.newOffset).toBe(entry.length * entryCount);
expect(result.stats).toEqual([]);
expect(result.userStats).toEqual([]);
expect(result.userLinks).toEqual([]);