test(cli): fix dependency test (#8801)

This commit is contained in:
Daniel Roe 2021-02-09 17:55:23 +00:00 committed by GitHub
parent e5d202badb
commit d0e7dd1c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,6 @@ describe('cli/utils', () => {
/webpack@.+ is installed but .+ is expected/ /webpack@.+ is installed but .+ is expected/
) )
) )
expect(consola.warn).toHaveBeenCalledTimes(1)
if (process.version.startsWith('v10')) { if (process.version.startsWith('v10')) {
expect(consola.warn).toHaveBeenCalledTimes(2) expect(consola.warn).toHaveBeenCalledTimes(2)
} else { } else {