From 1c6e0093b3e7ff27d7cdca25e300d724b053aa58 Mon Sep 17 00:00:00 2001 From: L0wry Date: Tue, 26 Jun 2018 14:35:36 +0100 Subject: [PATCH] fix: adding browser to validator --- src/configValidator.js | 3 ++- src/configValidator.test.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/configValidator.js b/src/configValidator.js index 45ec233..e5356da 100644 --- a/src/configValidator.js +++ b/src/configValidator.js @@ -32,7 +32,8 @@ function isLocalConfigValid(config) { 'latest', 'generatedDiffs', 'report', - 'scenarios' + 'scenarios', + 'browser' ].filter(field => !config[field]); return isValid(missingConfigFields); diff --git a/src/configValidator.test.js b/src/configValidator.test.js index 07d021e..674b7db 100644 --- a/src/configValidator.test.js +++ b/src/configValidator.test.js @@ -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/', @@ -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/',