0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-21 18:54:30 +01:00
Handle Chromium to run Karma
This commit is contained in:
XhmikosR 2020-11-17 22:01:24 +02:00
parent bfb773d64b
commit 7eee78c517

View File

@ -30,11 +30,15 @@ const detectBrowsers = {
return ['ChromeHeadless'] return ['ChromeHeadless']
} }
if (availableBrowser.includes('Chromium')) {
return ['ChromiumHeadless']
}
if (availableBrowser.includes('Firefox')) { if (availableBrowser.includes('Firefox')) {
return ['FirefoxHeadless'] return ['FirefoxHeadless']
} }
throw new Error('Please install Firefox or Chrome') throw new Error('Please install Chrome, Chromium or Firefox')
} }
} }