[Pkg-javascript-commits] [less.js] 07/10: output warning log messages during testing

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:26:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.1.2
in repository less.js.

commit d87777d18c3f36f474124ec9c599861804024cc2
Author: Luke Page <luke.a.page at gmail.com>
Date:   Fri Nov 28 18:07:54 2014 +0000

    output warning log messages during testing
---
 test/less-test.js | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/test/less-test.js b/test/less-test.js
index a57e9f3..a481b57 100644
--- a/test/less-test.js
+++ b/test/less-test.js
@@ -13,6 +13,21 @@ module.exports = function() {
 
     var isVerbose = process.env.npm_config_loglevel === 'verbose';
 
+    less.logger.addListener({
+        info: function(msg) {
+            if (isVerbose) {
+                console.log(msg);
+            }
+        },
+        warn: function(msg) {
+            console.warn(msg);
+        },
+        error: function(msg) {
+            console.error(msg);
+        }
+    });
+
+
     var totalTests = 0,
         failedTests = 0,
         passedTests = 0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list