From 7edc7dbc5cbf24b03f43a942f53ec0dba31e40f0 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Fri, 14 Mar 2014 12:10:33 +0100 Subject: [PATCH] fix: If no browsers are defined then pass nothing to karma. --- tasks/grunt-karma.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/grunt-karma.js b/tasks/grunt-karma.js index 51faaef..e251435 100644 --- a/tasks/grunt-karma.js +++ b/tasks/grunt-karma.js @@ -42,7 +42,9 @@ module.exports = function(grunt) { var data = _.merge(opts, this.data); // But override the browsers array. - data.browsers = this.data.browsers || data.browsers; + if (data.browsers && this.data.browsers) { + data.browsers = this.data.browsers; + } // Merge client.args if (this.data.client && _.isArray(this.data.client.args)) {