Skip to content

Commit

Permalink
Suppress logging help message while running tests
Browse files Browse the repository at this point in the history
(Follow up on #532)
  • Loading branch information
yhatt committed Jul 6, 2023
1 parent adfce83 commit 99927fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Marp CLI API interface', () => {
})

it('does not read input from stdin if called API', async () => {
const cliError = jest.spyOn(console, 'error').mockImplementation()
const cliStdout = jest.spyOn(console, 'log').mockImplementation()

try {
await marpCli.cliInterface([])
Expand All @@ -39,7 +39,7 @@ describe('Marp CLI API interface', () => {
await api([])
expect(stdinBuffer).not.toHaveBeenCalled()
} finally {
cliError.mockRestore()
cliStdout.mockRestore()
}
})

Expand Down

0 comments on commit 99927fe

Please sign in to comment.