Terugdraaien van ongerelateerde opmaakwijzigingen in src/components/shared
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,9 +36,7 @@ describe('ErrorBoundary', () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
expect(screen.getByTestId('error-boundary-fallback')).toBeInTheDocument();
|
expect(screen.getByTestId('error-boundary-fallback')).toBeInTheDocument();
|
||||||
expect(
|
expect(screen.getByText('Er ging iets mis. Probeer de pagina te vernieuwen.')).toBeInTheDocument();
|
||||||
screen.getByText('Er ging iets mis. Probeer de pagina te vernieuwen.'),
|
|
||||||
).toBeInTheDocument();
|
|
||||||
|
|
||||||
consoleErrorSpy.mockRestore();
|
consoleErrorSpy.mockRestore();
|
||||||
});
|
});
|
||||||
@@ -55,9 +53,7 @@ describe('ErrorBoundary', () => {
|
|||||||
expect(Sentry.captureException).toHaveBeenCalledTimes(1);
|
expect(Sentry.captureException).toHaveBeenCalledTimes(1);
|
||||||
expect(Sentry.captureException).toHaveBeenCalledWith(
|
expect(Sentry.captureException).toHaveBeenCalledWith(
|
||||||
expect.any(Error),
|
expect.any(Error),
|
||||||
expect.objectContaining({
|
expect.objectContaining({ extra: expect.objectContaining({ componentStack: expect.any(String) }) }),
|
||||||
extra: expect.objectContaining({ componentStack: expect.any(String) }),
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
consoleErrorSpy.mockRestore();
|
consoleErrorSpy.mockRestore();
|
||||||
|
|||||||
Reference in New Issue
Block a user