static uninstall() {
    if (window.Promise !== mr.MockPromise) {
      throw Error('mr.MockPromise not installed');
    }
    if (mr.MockPromise.pendingHandlers_.length) {
      console.warn('Discarding pending handlers.');
      mr.MockPromise.pendingHandlers_.length = 0;
      // throw Error('Expected no pending handlers.');
    }
    window.Promise = mr.MockPromise.origPromise_;
  }
/**
   * Undoes the effect of calling install().
   */
Undoes the effect of calling install().
Undoes the effect of calling install () .
static uninstall() {
    if (window.Promise !== mr.MockPromise) {
      throw Error('mr.MockPromise not installed');
    }
    if (mr.MockPromise.pendingHandlers_.length) {
      console.warn('Discarding pending handlers.');
      mr.MockPromise.pendingHandlers_.length = 0;
    }
    window.Promise = mr.MockPromise.origPromise_;
  }
static uninstall ( ) { if ( window . Promise !== mr . MockPromise ) { throw Error ( 'mr.MockPromise not installed' ) ; } if ( mr . MockPromise . pendingHandlers_ . length ) { console . warn ( 'Discarding pending handlers.' ) ; mr . MockPromise . pendingHandlers_ . length = 0 ; } window . Promise = mr . MockPromise . origPromise_ ; }
Undoes the effect of calling install().
Undoes the effect of calling install () .
// throw Error('Expected no pending handlers.');