From 450ae8a9373c39c51ec8ac9dae23aa3237130cbe Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 3 Mar 2015 16:28:10 -0800 Subject: [PATCH] CRM-16046 - Move karma.conf.js to default location This allows one to call "karma start" without specifying the name of the config file. --- tests/karma.conf.js => karma.conf.js | 1 - tools/scripts/npm/test.sh | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) rename tests/karma.conf.js => karma.conf.js (98%) diff --git a/tests/karma.conf.js b/karma.conf.js similarity index 98% rename from tests/karma.conf.js rename to karma.conf.js index e1e064cd97..ef710fcefd 100644 --- a/tests/karma.conf.js +++ b/karma.conf.js @@ -1,7 +1,6 @@ module.exports = function(config) { config.set({ autoWatch: true, - basePath: '..', browsers: ['PhantomJS'], exclude: [ ], diff --git a/tools/scripts/npm/test.sh b/tools/scripts/npm/test.sh index 40ac68bcf4..8cf25ba2a2 100644 --- a/tools/scripts/npm/test.sh +++ b/tools/scripts/npm/test.sh @@ -1,8 +1,8 @@ #!/bin/bash if which node_modules/karma/bin/karma >> /dev/null; then - node node_modules/karma/bin/karma start tests/karma.conf.js + node node_modules/karma/bin/karma start elif which karma >> /dev/null ; then - karma start tests/karma.conf.js + karma start else echo "ERROR: Failed to find karma" exit 1 -- 2.25.1