Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

misc

TJ Holowaychuk54689f0e1cc8
diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.js
index 57b626f0..5b91574e 100644
--- a/lib/reporters/xunit.js
+++ b/lib/reporters/xunit.js
@@ -86,7 +86,7 @@ function tag(name, attrs, close, content) {
pairs.push(key + '="' + escape(attrs[key]) + '"');
}
- tag = '<' + name + (pairs.length? ' ' + pairs.join(' ') : '') + end;
+ tag = '<' + name + (pairs.length ? ' ' + pairs.join(' ') : '') + end;
if (content) tag += content + '</' + name + end;
return tag;
}