Extension of the mocha programmatic API that wraps events in a more consumable interface