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