()
| 5 | describe('RateLimitedQueue', () => { |
| 6 | let pending = 0 |
| 7 | async function fn() { |
| 8 | pending++ |
| 9 | return delay(15).then(() => pending--) |
| 10 | } |
| 11 | |
| 12 | it('should run at most N promises at the same time', async () => { |
| 13 | const queue = new RateLimitedQueue(4) |
no test coverage detected