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:
parent
9daaa18b69
commit
f6ba8be382
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user