From f6ba8be382b755ecd624a608c7c75bfdb1b04396 Mon Sep 17 00:00:00 2001 From: Kelvin Luck Date: Mon, 7 Jan 2013 17:12:37 +0000 Subject: [PATCH] Commenting out unused code. The PhantomReporter never fires a writeFile event so I don't think this code could ever be triggered? --- tasks/jasmine.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tasks/jasmine.js b/tasks/jasmine.js index 20f3205..ab7cc49 100644 --- a/tasks/jasmine.js +++ b/tasks/jasmine.js @@ -143,13 +143,14 @@ module.exports = function(grunt) { grunt.event.emit.apply(grunt.event, args); }); - phantomjs.on('jasmine.writeFile',function(type,filename, xml){ - var dir = options[type] && options[type].output; - if (dir) { - grunt.file.mkdir(dir); - grunt.file.write(path.join(dir, filename), xml); - } - }); + // Not used? +// phantomjs.on('jasmine.writeFile',function(type,filename, xml){ +// var dir = options[type] && options[type].output; +// if (dir) { +// grunt.file.mkdir(dir); +// grunt.file.write(path.join(dir, filename), xml); +// } +// }); phantomjs.on('jasmine.reportRunnerStarting',function(suites) {