Routing: an unexpected spelling error happened (#57295)

This commit is contained in:
Leon Sorokin 2022-10-19 15:01:50 -05:00 committed by GitHub
parent 3e6bc28de5
commit bdb97496ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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();
});
});

View File

@ -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>