Skip to content

armgit / mocha

Public Imported from GitHub
0

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

trim clean() result

TJ Holowaychuka88cc288a063
diff --git a/lib/utils.js b/lib/utils.js
index 6ed9ccf1..c1a5a36e 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -204,7 +204,7 @@ exports.clean = function(str) {
str = str.replace(re, '');
- return str;
+ return str.trim();
};
/**