docs: function resetSuite() {
      var event,
          me = this,
          aborting = calledBy.abortSuite;
  
      if (me.running && !aborting) {
        // no worries, `resetSuite()` is called within `abortSuite()`
        calledBy.resetSuite = true;
        me.abort();
        delete calledBy.resetSuite;
      }
      // reset if the state has changed
      else if ((me.aborted || me.running) &&
          (me.emit(event = Event('reset')), !event.cancelled)) {
        me.running = false;
        if (!aborting) {
          invoke(me, 'reset');
        }
      }
      return me;
    }