Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fix exports double-execution regression. Closes #531

TJ Holowaychuk15e244392112
diff --git a/bin/_mocha b/bin/_mocha
index aaaabfe0..ceefbb23 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -292,10 +292,8 @@ if (program.watch) {
function loadAndRun() {
mocha.files = files;
- mocha.loadFiles(function(){
- mocha.run(function(){
- play(frames);
- });
+ mocha.run(function(){
+ play(frames);
});
}
@@ -321,9 +319,7 @@ if (program.watch) {
// load
mocha.files = files;
-mocha.loadFiles(function(){
- mocha.run(process.exit);
-});
+mocha.run(process.exit);
// enable growl notifications