Skip to content

Commit

Permalink
test: verify BROWSER is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
secinthenet committed Oct 7, 2021
1 parent d035063 commit 45a8e2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/spec/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ if (!browser) {
console.log("Using default browser: chrome");
browser = "chrome";
}
else if (browser !== 'chrome' && browser !== 'firefox') {
throw `Unsupported browser: "${browser}", must be "chrome" or "firefox"`
}
else {
console.log("Using browser: " + browser);
}
Expand Down

0 comments on commit 45a8e2a

Please sign in to comment.