()
| 49 | } |
| 50 | |
| 51 | function testImmediate() { |
| 52 | assert.strictEqual(activeId, -1); |
| 53 | const res = new AsyncResource(resType); |
| 54 | assert.strictEqual(activeId, res.asyncId()); |
| 55 | res.emitDestroy(); |
| 56 | setImmediate(common.mustCall(() => |
| 57 | assert.strictEqual(activeId, -1)), |
| 58 | ); |
| 59 | } |
| 60 | |
| 61 | function testPromise() { |
| 62 | assert.strictEqual(activeId, -1); |
nothing calls this directly
no test coverage detected