constdiInfo=require('../lib/index.js');describe('reporter',()=>{it('is available via dependency injection',()=>{constdiEntry=diInfo['reporter:karma-jasmine'];expect(diEntry.length).toBe(2);expect(typeofdiEntry[1]).toBe('function');});it('logs debug_url',()=>{constlogSpy=jasmine.createSpy('consoleLog',console.log);constoriginalLog=console.log;console.log=logSpy;constInjectKarmaJasmineReporter=diInfo['reporter:karma-jasmine'][1];constreporter=InjectKarmaJasmineReporter(false);reporter.onSpecComplete(/** ignored */undefined,{debug_url:'hiya'});expect(logSpy).toHaveBeenCalledWith('Debug this test: hiya');console.log=originalLog;});});