☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fix for NaN coming in time attribute when test fails.
Vadim Nikitinb9203ba83392
diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.jsindex 1ed5ee93..1332fdc4 100644--- a/lib/reporters/xunit.js+++ b/lib/reporters/xunit.js@@ -74,7 +74,7 @@ function test(test) {var attrs = {classname: test.parent.fullTitle(), name: test.title- , time: test.duration / 1000+ , time: (test.duration / 1000) || 0};if ('failed' == test.state) {