From 7af04d1f58e64ee278bfa3eac0a2506b427631e3 Mon Sep 17 00:00:00 2001 From: Miguel Ventura Date: Thu, 20 Aug 2015 15:07:47 +0100 Subject: [PATCH] NodeJS deprecation warnings on util.puts `util.puts` will sometimes cause node to issue deprecation warnings to stderr complaining that it's been deprecated and asking to use `console.log` in its favor. --- lib/jasmine-node/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jasmine-node/index.js b/lib/jasmine-node/index.js index 625e81c..d2d4984 100755 --- a/lib/jasmine-node/index.js +++ b/lib/jasmine-node/index.js @@ -115,7 +115,7 @@ jasmine.executeSpecsInFolder = function(options){ if(junitreport && junitreport.report) { var existsSync = fs.existsSync || path.existsSync; if(!existsSync(junitreport.savePath)) { - util.puts('creating junit xml report save path: ' + junitreport.savePath); + console.log('creating junit xml report save path: ' + junitreport.savePath); mkdirp.sync(junitreport.savePath, "0755"); } jasmineEnv.addReporter(new jasmine.JUnitXmlReporter(junitreport.savePath,