Skip to content

Commit

Permalink
Revert leftover console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 12, 2024
1 parent 896c12e commit c645c1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions workspaces/arborist/test/arborist/build-ideal-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ const cache = t.testdir()
// the listener and provides the list of what it saw.
const warningTracker = () => {
const list = []
const onlog = (...msg) => {
console.log(msg)
msg[0] === 'warn' && list.push(msg)
}
const onlog = (...msg) => msg[0] === 'warn' && list.push(msg)
process.on('log', onlog)
return () => {
process.removeListener('log', onlog)
Expand Down

0 comments on commit c645c1f

Please sign in to comment.