Skip to content

Commit

Permalink
fix(init): Support ChromeHeadless in validateBrowser (#3110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo authored and johnjbarton committed Aug 13, 2018
1 parent 11e3a9d commit eeadcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init.js
Expand Up @@ -69,7 +69,7 @@ function validatePattern (pattern) {

function validateBrowser (name) {
// TODO(vojta): check if the path resolves to a binary
installPackage('karma-' + name.toLowerCase().replace('canary', '') + '-launcher')
installPackage('karma-' + name.toLowerCase().replace('headless', '').replace('canary', '') + '-launcher')
}

function validateFramework (name) {
Expand Down

0 comments on commit eeadcf2

Please sign in to comment.