()
| 25 | process.on('exit', onexit); |
| 26 | |
| 27 | function onexit() { |
| 28 | hooks.disable(); |
| 29 | hooks.sanityCheck('QUERYWRAP'); |
| 30 | |
| 31 | const as = hooks.activitiesOfTypes('QUERYWRAP'); |
| 32 | assert.strictEqual(as.length, 1); |
| 33 | const a = as[0]; |
| 34 | |
| 35 | assert.strictEqual(a.type, 'QUERYWRAP'); |
| 36 | assert.strictEqual(typeof a.uid, 'number'); |
| 37 | assert.strictEqual(typeof a.triggerAsyncId, 'number'); |
| 38 | checkInvocations(a, { init: 1, before: 1, after: 1, destroy: 1 }, |
| 39 | 'when process exits'); |
| 40 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…