mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 06:41:25 +08:00
Fix test failure
This commit is contained in:
parent
b973a49f4e
commit
bd55e2b481
@ -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 },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user