test: avoid unexpected outside stderr assertion count

This commit is contained in:
Clark Du 2020-01-19 10:26:44 +00:00
parent 4614bd2b10
commit fdd9a7a051

View File

@ -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)