junitwriter
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -23,4 +23,4 @@ var | ||
addTestsuite: function() { | ||
return this._root.addTestsuite(); | ||
addTestsuite: function(name) { | ||
return this._root.addTestsuite(name); | ||
}, | ||
@@ -27,0 +27,0 @@ |
{ | ||
"name": "junitwriter", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A junit reporter for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,2 +8,3 @@ var | ||
'should create an instance': function(test) { | ||
var writer = new Writer(); | ||
test.done(); | ||
@@ -22,2 +23,13 @@ }, | ||
'should add a testsuite': function(test) { | ||
var writer = new Writer(); | ||
writer.addTestsuite('suitename'); | ||
test.equal( | ||
writer.toString(), | ||
'<?xml version="1.0" encoding="UTF-8"?>\n' + | ||
'<testsuites><testsuite name="suitename" tests="0"/></testsuites>' | ||
); | ||
test.done(); | ||
}, | ||
'should save to file': function(test) { | ||
@@ -24,0 +36,0 @@ var |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55072
1827