mirror of
https://github.com/morluto/rea.git
synced 2026-11-12 09:52:27 +00:00
chore(lint): enforce buffer and cancellation regression guards
This commit is contained in:
1 parent
f2fa951c00
commit
475f09d5ca
182 files changed
+1653
-497
No files matched your search
@@ -26,7 +26,9 @@ it("retains all bytes across short reads through the declared size", async () =>
|
||||
expectedSize: BigInt(bytes.length),
|
||||
});
|
||||
if (result.status === "failed") throw result.entry;
|
||||
expect(Buffer.concat(result.chunks, result.total)).toEqual(bytes);
|
||||
expect(
|
||||
Buffer.compare(Buffer.concat(result.chunks, result.total), bytes),
|
||||
).toBe(0);
|
||||
});
|
||||
|
||||
it("reports growth instead of continuing to consume a changed file", async () => {
|
||||
|
||||
Reference in new issue
Block a user