code: function awaitDidNavigate() {
        return new Promise( resolve => {
           const unsubscribe = eventBusMock.subscribe( 'didNavigate', event => {
              resolve( event );
              unsubscribe();
           } );
        } );
     }
docs: /////////////////////////////////////////////////////////////////////////////////////////////////////////