From 3c76f15d7784221d5fe51c34f0dff596f4e2a4d2 Mon Sep 17 00:00:00 2001 From: Ahmad Bamieh Date: Mon, 18 Jun 2018 09:02:15 +0300 Subject: [PATCH 1/2] Update _mocha --- bin/_mocha | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/bin/_mocha b/bin/_mocha index c96f1c2d31..2a73ebf7e9 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. From 34b2577d332753516a22f1d651c1ee919f0059b5 Mon Sep 17 00:00:00 2001 From: Bamieh Date: Tue, 19 Jun 2018 11:41:25 +0300 Subject: [PATCH 2/2] fix indentation --- bin/_mocha | 1 - 1 file changed, 1 deletion(-) diff --git a/bin/_mocha b/bin/_mocha index 2a73ebf7e9..7e84a3e507 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -105,7 +105,6 @@ const stop = () => { process.stdout.write('\u001b[2K'); }; - /** * Files. */