()
| 51 | process.on('exit', onexit); |
| 52 | |
| 53 | function onexit() { |
| 54 | hooks.disable(); |
| 55 | hooks.sanityCheck('SHUTDOWNWRAP'); |
| 56 | const as = hooks.activitiesOfTypes('SHUTDOWNWRAP'); |
| 57 | const a = as[0]; |
| 58 | assert.strictEqual(a.type, 'SHUTDOWNWRAP'); |
| 59 | assert.strictEqual(typeof a.uid, 'number'); |
| 60 | assert.strictEqual(typeof a.triggerAsyncId, 'number'); |
| 61 | checkInvocations(as[0], { init: 1, before: 1, after: 1, destroy: 1 }, |
| 62 | 'when process exits'); |
| 63 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…