☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix xunit NaN on failure. Closes #894
TJ Holowaychukc213e1090d51
diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.jsindex 702aa3ce..f6b6cb22 100644--- a/lib/reporters/xunit.js+++ b/lib/reporters/xunit.js@@ -52,7 +52,7 @@ function XUnit(runner) {, errors: stats.failures, skip: stats.tests - stats.failures - stats.passes, timestamp: (new Date).toUTCString()- , time: stats.duration / 1000+ , time: (stats.duration / 1000) || 0}, false));tests.forEach(test);