()
| 213 | it('correctly processes out of order tasks', async () => { |
| 214 | // This test fills up the queue with tasks, all but the first one completes then the rest should resolve |
| 215 | let firstTask: (value: unknown) => void = () => { |
| 216 | /* Nothing*/ |
| 217 | }; |
| 218 | let lastResolve: (value: unknown) => void; |
| 219 | |
| 220 | const lastDone = new Promise((resolve) => (lastResolve = resolve)); |