test(cli): remove unneeded assertion

This commit is contained in:
Ayo Ayco 2024-12-20 00:01:17 +01:00
parent 06b7b8e729
commit 08c4ee7259

View file

@ -54,7 +54,6 @@ describe('FUNCTION: printInfo()', () => {
test('log mcfly and nitro versions', async () => {
const spy = vi.spyOn(consola, 'log')
const fakeMessage = 'McFly -1.0.0 Nitro -1.0.0'
createRequireMocks.createRequire.mockImplementationOnce(() => {
return () => {
return {
@ -67,7 +66,6 @@ describe('FUNCTION: printInfo()', () => {
expect(spy.mock.calls[0][0]).toContain('McFly')
expect(spy.mock.calls[0][0]).toContain('Nitro')
expect(spy.mock.calls[0][0]).toBe(fakeMessage) //toHaveBeenCalledWith(fakeMessage)
})
test('catch error', async () => {