mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
test: avoid unexpected outside stderr assertion count
This commit is contained in:
parent
4614bd2b10
commit
fdd9a7a051
@ -209,7 +209,6 @@ describe('cli/utils', () => {
|
|||||||
expect(exit).not.toHaveBeenCalled()
|
expect(exit).not.toHaveBeenCalled()
|
||||||
jest.runAllTimers()
|
jest.runAllTimers()
|
||||||
|
|
||||||
expect(stderr).toHaveBeenCalledTimes(1)
|
|
||||||
expect(stderr).toHaveBeenCalledWith(expect.stringMatching('Nuxt.js will now force exit'))
|
expect(stderr).toHaveBeenCalledWith(expect.stringMatching('Nuxt.js will now force exit'))
|
||||||
expect(exit).toHaveBeenCalledTimes(1)
|
expect(exit).toHaveBeenCalledTimes(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user