Skip to content

Commit

Permalink
strip out ansi characters (fixes aghassemi#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamund Ferguson committed Apr 26, 2016
1 parent 93f3981 commit be9e63e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var through = require('through2');
var duplexer = require('duplexer');
var xmlbuilder = require('xmlbuilder');
var extend = require('xtend');
var stripAnsi = require('strip-ansi');

module.exports = converter;

Expand Down Expand Up @@ -102,7 +103,7 @@ function converter(options) {
indent: ' ',
newline: '\n'
});
outStream.push(xmlString + '\n');
outStream.push(stripAnsi(xmlString) + '\n');
outStream.emit('end');
});

Expand Down Expand Up @@ -161,4 +162,3 @@ function converter(options) {

return text;
}
}
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.3.1",
"description": "TAP to xUnit XML converter.",
"main": "lib/converter.js",
"bin" : {
"tap-xunit" : "./bin/tap-xunit",
"txunit" : "./bin/tap-xunit"
"bin": {
"tap-xunit": "./bin/tap-xunit",
"txunit": "./bin/tap-xunit"
},
"scripts": {
"test": "node test/runner.js"
Expand Down Expand Up @@ -34,11 +34,12 @@
"concat-stream": "~1.5.1"
},
"dependencies": {
"through2": "~2.0.0",
"xmlbuilder": "~4.1.0",
"duplexer": "~0.1.1",
"minimist": "~1.2.0",
"strip-ansi": "^3.0.1",
"tap-parser": "~1.2.2",
"xtend": "~4.0.0",
"minimist": "~1.2.0"
"through2": "~2.0.0",
"xmlbuilder": "~4.1.0",
"xtend": "~4.0.0"
}
}

0 comments on commit be9e63e

Please sign in to comment.