Skip to content

Commit

Permalink
Checking junitreport exists in index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
croland authored and mhevery committed Feb 15, 2012
1 parent 6200381 commit ca21cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jasmine-node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jasmine.executeSpecsInFolder = function(folder,

specs.load(folder, fileMatcher);

if(junitreport.report) {
if(junitreport && junitreport.report) {
if(!path.existsSync(junitreport.savePath)) {
util.puts('creating junit xml report save path: ' + junitreport.savePath);
fs.mkdirSync(junitreport.savePath, "0755");
Expand Down

0 comments on commit ca21cd6

Please sign in to comment.