text: /**
   * @since 3.8.0
   */
  
  import TestHelpers from '../test-helpers';
  
  // registers the plugin
  import FFmpegjsEngine from '../../src/js/plugins/ffmpegjs-plugin';
  import {FFMPEGJS} from '../../src/js/engine/convert-engine';
  
  /** @test {FFmpegjsEngine} */
  describe('plugins.ffmpegjs-plugin', () => {
      let player;
  
      beforeEach(() => {
          // create video-only player with ffmpeg.js plugin
          player = TestHelpers.makeConvertPluginPlayer(FFMPEGJS);
      });
  
      afterEach(() => {
          player.dispose();
      });
  
      /** @test {FFmpegjsEngine} */
      it('converts', (done) => {
          // allow test to fail
          pending('disabled until test runner failure is figured out');
  
          player.one('deviceReady', () => {
              let req = new Request(TestHelpers.TEST_WEBM);
              fetch(req).then((response) => {
                  return response.blob();
              }).then((blob) => {
                  player.one('finishConvert', () => {
                      expect(player.convertedData instanceof Blob).toBeTruthy();
                      expect(player.convertedData.name).toEndWith('.mp3');
                      done();
                  });
                  player.record().converter.convert(blob);
              });
          });
  
          player.one('ready', () => {
              // start device
              player.record().getDevice();
          });
      });
  });
  