Routing: an unexpected spelling error happened (#57295)
This commit is contained in:
1 parent
3e6bc28de5
commit
bdb97496ec
2 files changed
+2
-2
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user