Socket
Socket
Sign inDemoInstall

junitwriter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

junitwriter - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

lib/Writer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc