()
| 27 | }).enable(); |
| 28 | |
| 29 | function testNextTick() { |
| 30 | assert.strictEqual(activeId, -1); |
| 31 | const res = new AsyncResource(resType); |
| 32 | assert.strictEqual(activeId, res.asyncId()); |
| 33 | res.emitDestroy(); |
| 34 | // nextTick has higher prio than emit destroy |
| 35 | process.nextTick(common.mustCall(() => |
| 36 | assert.strictEqual(activeId, res.asyncId())), |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | function testQueueMicrotask() { |
| 41 | assert.strictEqual(activeId, -1); |
no test coverage detected