Skip to content

Commit

Permalink
fix: remove args from log pause/resume
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 15, 2024
1 parent e00086e commit 4832b21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 2 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 4832b21

Please sign in to comment.