Skip to content

Commit

Permalink
fix(config): fail if client.args is set to a non array
Browse files Browse the repository at this point in the history
  • Loading branch information
timbertson committed Mar 4, 2014
1 parent f9c0cbe commit fe4eaec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ var normalizeConfig = function(config, configFilePath) {
config.reporters = config.reporters.split(',');
}

if (config.client && config.client.args && !Array.isArray(config.client.args)) {
throw new Error('Invalid configuration: client.args must be an array of strings');
}

// normalize preprocessors
var preprocessors = config.preprocessors || {};
var normalizedPreprocessors = config.preprocessors = Object.create(null);
Expand Down

0 comments on commit fe4eaec

Please sign in to comment.