must-call

example.on('end', mustCall(() => {})); Check the callback function is called.