Skip to content

Commit

Permalink
fix: adding browser to validator
Browse files Browse the repository at this point in the history
  • Loading branch information
L0wry committed Jun 26, 2018
1 parent 6b30408 commit 1c6e009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ function isLocalConfigValid(config) {
'latest',
'generatedDiffs',
'report',
'scenarios'
'scenarios',
'browser'
].filter(field => !config[field]);

return isValid(missingConfigFields);
Expand Down
2 changes: 2 additions & 0 deletions src/configValidator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ describe('The Config Validator', () => {
latest: './e2eTests/generateHtmlReport/latest',
generatedDiffs: './e2eTests/generateHtmlReport/generatedDiffs',
report: './e2eTests/generateHtmlReport/reports',
browser: 'chrome',
scenarios: [
{
url: 'http:/google.com/',
Expand Down Expand Up @@ -76,6 +77,7 @@ describe('The Config Validator', () => {
latest: './e2eTests/generateHtmlReport/latest',
generatedDiffs: './e2eTests/generateHtmlReport/generatedDiffs',
report: './e2eTests/generateHtmlReport/reports',
browser: 'chrome',
scenarios: [
{
url: 'http:/google.com/',
Expand Down

0 comments on commit 1c6e009

Please sign in to comment.