Commenting out unused code.

The PhantomReporter never fires a writeFile event so I don't think this code could ever be triggered?
This commit is contained in:
Kelvin Luck 2013-01-07 17:12:37 +00:00
parent 9daaa18b69
commit f6ba8be382

View File

@ -143,13 +143,14 @@ module.exports = function(grunt) {
grunt.event.emit.apply(grunt.event, args); grunt.event.emit.apply(grunt.event, args);
}); });
phantomjs.on('jasmine.writeFile',function(type,filename, xml){ // Not used?
var dir = options[type] && options[type].output; // phantomjs.on('jasmine.writeFile',function(type,filename, xml){
if (dir) { // var dir = options[type] && options[type].output;
grunt.file.mkdir(dir); // if (dir) {
grunt.file.write(path.join(dir, filename), xml); // grunt.file.mkdir(dir);
} // grunt.file.write(path.join(dir, filename), xml);
}); // }
// });
phantomjs.on('jasmine.reportRunnerStarting',function(suites) { phantomjs.on('jasmine.reportRunnerStarting',function(suites) {