diff options
Diffstat (limited to 'test/lib/utils/pulse-till-done.js')
-rw-r--r-- | test/lib/utils/pulse-till-done.js | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/test/lib/utils/pulse-till-done.js b/test/lib/utils/pulse-till-done.js index acbf66396..9f7a94614 100644 --- a/test/lib/utils/pulse-till-done.js +++ b/test/lib/utils/pulse-till-done.js @@ -1,18 +1,17 @@ const t = require('tap') let pulseStarted = null -const npmlog = { - gauge: { - pulse: () => { - if (pulseStarted) { - pulseStarted() - } - }, - }, -} const pulseTillDone = t.mock('../../../lib/utils/pulse-till-done.js', { - npmlog, + npmlog: { + gauge: { + pulse: () => { + if (pulseStarted) { + pulseStarted() + } + }, + }, + }, }) t.test('pulses (with promise)', async (t) => { |