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);
});
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) {