From 4832b21f33513ceb0482ba1757594e9776cff408 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Sun, 14 Apr 2024 19:08:52 -0700 Subject: [PATCH] fix: remove args from log pause/resume --- lib/index.js | 8 ++++---- test/index.js | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 47aef69..4929b22 100644 --- a/lib/index.js +++ b/lib/index.js @@ -69,11 +69,11 @@ module.exports = { timing: function (...args) { return process.emit('log', 'timing', ...args) }, - pause: function (...args) { - return process.emit('log', 'pause', ...args) + pause: function () { + return process.emit('log', 'pause') }, - resume: function (...args) { - return process.emit('log', 'resume', ...args) + resume: function () { + return process.emit('log', 'resume') }, }, time: { diff --git a/test/index.js b/test/index.js index a5c5d0e..d4225eb 100644 --- a/test/index.js +++ b/test/index.js @@ -30,6 +30,8 @@ for (const method in procLog) { break case 'input.start': case 'input.end': + case 'log.pause': + case 'log.resume': t.strictSame(args, [], 'no args') break case 'input.read':