0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +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']
}
if (availableBrowser.includes('Chromium')) {
return ['ChromiumHeadless']
}
if (availableBrowser.includes('Firefox')) {
return ['FirefoxHeadless']
}
throw new Error('Please install Firefox or Chrome')
throw new Error('Please install Chrome, Chromium or Firefox')
}
}