()
| 31 | |
| 32 | it('returns the same promise instance to concurrent callers', () => { |
| 33 | const fn = async () => { |
| 34 | await sleep(10) |
| 35 | return 1 |
| 36 | } |
| 37 | const a = coalesceLocally('same-key', fn) |
| 38 | const b = coalesceLocally('same-key', fn) |
| 39 | expect(a).toBe(b) |
no test coverage detected