Skip to content

Commit

Permalink
Update watcher test to prevent mocking logger function
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Feb 21, 2025
1 parent b747ae8 commit 7cc6be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('Watcher', () => {
const onUnlink = on.mock.calls.find(([e]) => e === 'unlink')[1]

// Callbacks
const log = jest.spyOn(watcher as any, 'log').mockImplementation()
const log = jest.spyOn(watcher as any, 'log')
const conv = jest.spyOn(watcher as any, 'convert').mockImplementation()
const del = jest.spyOn(watcher as any, 'delete').mockImplementation()

Expand Down

0 comments on commit 7cc6be6

Please sign in to comment.