Simulate an async iterable of JSONL results
(items: T[])
| 82 | |
| 83 | /** Simulate an async iterable of JSONL results */ |
| 84 | async function* asyncIterableOf<T>(items: T[]): AsyncIterable<T> { |
| 85 | for (const item of items) { |
| 86 | yield item; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | describe('submitBatch', () => { |
| 91 | beforeEach(() => { |