From 8de13d1949f087f4366d8ca53d73a536c5dcd996 Mon Sep 17 00:00:00 2001 From: Curtis Ekstrom Date: Tue, 12 Apr 2016 23:04:08 +0200 Subject: [PATCH] Simplify testem logic and remove console logging --- testem.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/testem.js b/testem.js index 36cca951..75b5735a 100644 --- a/testem.js +++ b/testem.js @@ -1,15 +1,10 @@ /*jshint node:true*/ var launchInCI = function() { - if (process.env.TRAVIS) { - if (process.env.TRAVIS_PULL_REQUEST) { - console.log('will run with phantom'); - return ['PhantomJS']; - } else { - return ['SL_chrome', 'SL_firefox']; - } - } else { + if (!process.env.TRAVIS || process.env.TRAVIS_PULL_REQUEST) { return ['PhantomJS']; + } else { + return ['SL_chrome', 'SL_firefox']; } };