spec/laxar-media-widget.spec.js
function update( resource, patches ) {
      testEventBus.publish( `didUpdate.${resource}`, { resource, patches } );
      testEventBus.flush();
   }
function update( resource, patches ) {
      testEventBus.publish( `didUpdate.${resource}`, { resource, patches } );
      testEventBus.flush();
   }
/////////////////////////////////////////////////////////////////////////////////////////////////////////