Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Update _mocha

Ahmad Bamiehe34e9f152dc5
diff --git a/bin/_mocha b/bin/_mocha
index c96f1c2d..2a73ebf7 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -99,26 +99,12 @@ const showCursor = () => {
};
/**
- * Stop play()ing.
+ * Stop.
*/
const stop = () => {
process.stdout.write('\u001b[2K');
- clearInterval(play.timer);
};
-/**
- * Play the given array of strings.
- */
-const play = (arr, interval) => {
- const len = arr.length;
- interval = interval || 100;
- let i = 0;
-
- play.timer = setInterval(() => {
- const str = arr[i++ % len];
- process.stdout.write(`\u001b[0G${str}`);
- }, interval);
-};
/**
* Files.