mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Routing: an unexpected spelling error happened (#57295)
This commit is contained in:
parent
3e6bc28de5
commit
bdb97496ec
@ -67,7 +67,7 @@ describe('GrafanaRoute', () => {
|
|||||||
|
|
||||||
setup({ route: { component: PageComponent, path: '' } });
|
setup({ route: { component: PageComponent, path: '' } });
|
||||||
|
|
||||||
expect(await screen.findByRole('heading', { name: 'An unexpected error happend' })).toBeInTheDocument();
|
expect(await screen.findByRole('heading', { name: 'An unexpected error happened' })).toBeInTheDocument();
|
||||||
expect(consoleError).toHaveBeenCalled();
|
expect(consoleError).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -43,7 +43,7 @@ export function GrafanaRouteError({ error, errorInfo }: Props) {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!isChunkLoadingError && (
|
{!isChunkLoadingError && (
|
||||||
<ErrorWithStack title={'An unexpected error happend'} error={error} errorInfo={errorInfo} />
|
<ErrorWithStack title={'An unexpected error happened'} error={error} errorInfo={errorInfo} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Page>
|
</Page>
|
||||||
|
Loading…
Reference in New Issue
Block a user