Routing: an unexpected spelling error happened (#57295) (#57305)

(cherry picked from commit bdb97496ec)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-19 14:24:27 -06:00
committed by GitHub
co-authored by Leon Sorokin
parent 1559344944
commit 1547e41ce0
2 changed files with 2 additions and 2 deletions
@@ -67,7 +67,7 @@ describe('GrafanaRoute', () => {
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();
});
});
@@ -43,7 +43,7 @@ export function GrafanaRouteError({ error, errorInfo }: Props) {
</div>
)}
{!isChunkLoadingError && (
<ErrorWithStack title={'An unexpected error happend'} error={error} errorInfo={errorInfo} />
<ErrorWithStack title={'An unexpected error happened'} error={error} errorInfo={errorInfo} />
)}
</div>
</Page>