Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Runner no longer mutates Suite tests Array

Michael Schoonmaker3f8e63259155
diff --git a/lib/runner.js b/lib/runner.js
index 6e77ecdf..34a503a7 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -321,7 +321,7 @@ Runner.prototype.runTest = function(fn){
Runner.prototype.runTests = function(suite, fn){
var self = this
- , tests = suite.tests
+ , tests = suite.tests.slice()
, test;
function next(err) {