Skip to content

Commit

Permalink
Syntux formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
seidtgeist committed Dec 2, 2011
1 parent 0363cfc commit 5b850c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./lib/test');
module.exports = require('./lib/test');
1 change: 1 addition & 0 deletions lib/convert.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
var stringifier = require('./stringifier'),
parser = require('./parser'),
;
7 changes: 3 additions & 4 deletions lib/stringifier/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var formatSuite = function(suite) {
return '<testsuite name="' + escapeInvalidXmlChars(suite.name) + '">' +
suite.tests.map(formatTest).join('') +
'</testsuite>';
}
};

/**
* Formats test case to JUnit XML
Expand All @@ -30,10 +30,9 @@ var formatTest = function(test) {
escapeInvalidXmlChars(test.stacktrace) +
'</failure>';
return '<testcase name="' + escapeInvalidXmlChars(test.name) + '">' +
inner
inner +
'</testcase>';
}
};

/**
* Escapes XML characters
Expand All @@ -44,4 +43,4 @@ var escapeInvalidXmlChars = function(str) {
.replace(/\>/g, "&gt;")
.replace(/\"/g, "&quot;")
.replace(/\'/g, "&apos;");
}
};

0 comments on commit 5b850c5

Please sign in to comment.