Fix test failure

This commit is contained in:
Tom Coleman 2022-12-13 11:35:35 +11:00
parent b973a49f4e
commit bd55e2b481

View File

@ -65,7 +65,7 @@ describe('when command fails', () => {
withTelemetry('dev', { cliOptions: { disableTelemetry: true } }, run) withTelemetry('dev', { cliOptions: { disableTelemetry: true } }, run)
).rejects.toThrow(error); ).rejects.toThrow(error);
expect(telemetry).toHaveBeenCalledTimes(1); expect(telemetry).toHaveBeenCalledTimes(0);
expect(telemetry).not.toHaveBeenCalledWith( expect(telemetry).not.toHaveBeenCalledWith(
'error', 'error',
{ eventType: 'dev', error }, { eventType: 'dev', error },