From 6bc0aba800a9313f337de7e7d3e236de9989b28e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 15 Jan 2016 22:56:38 -0800 Subject: [PATCH] Avoid chatty console.log. --- test/test-fp.js | 5 ++++- test/test.js | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/test-fp.js b/test/test-fp.js index e60223626..a7f791bb5 100644 --- a/test/test-fp.js +++ b/test/test-fp.js @@ -15,6 +15,7 @@ /** Method and object shortcuts. */ var phantom = root.phantom, amd = root.define && define.amd, + argv = root.process && process.argv, document = !phantom && root.document, noop = function() {}, slice = arrayProto.slice, @@ -65,7 +66,9 @@ /*--------------------------------------------------------------------------*/ - console.log('Running lodash/fp tests.'); + if (argv) { + console.log('Running lodash/fp tests.'); + } QUnit.module('method arity checks'); diff --git a/test/test.js b/test/test.js index d79e128b0..6ed4e3857 100644 --- a/test/test.js +++ b/test/test.js @@ -636,9 +636,8 @@ /*--------------------------------------------------------------------------*/ - console.log('Running lodash tests.'); - if (params) { + console.log('Running lodash tests.'); console.log('test.js invoked with arguments: ' + JSON.stringify(slice.call(params))); }