import { electronToChromium } from 'electron-to-chromium' ; import { version as electronVersion } from 'electron/package.json' ; import fetch from 'node-fetch' ; import { config } from './package.json' ; describe ( 'Karma' , ( ) => { it ( 'uses the correct Chromium version' , async ( done ) => { const electronChromiumVersionInfo = await ( await fetch ( `http://omahaproxy.appspot.com/deps.json?version=${ electronToChromium ( electronVersion ) }` ) ) . json ( ) ; const electronChromeRevision = electronChromiumVersionInfo . chromium_base_position ; expect ( electronChromeRevision ) . toEqual ( config . PUPPETEER_CHROMIUM_REVISION ) ; done ( ) ; } ) ; } ) ;