Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#12588] Added unit tests for ErrorReportComponent #12610

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,10 @@ describe('ErrorReportComponent', () => {
expect(fixture).toMatchSnapshot();
});

it('should disable error reporting if CSRF error message is detected', () => {
component.errorMessage = 'Missing CSRF token.';
component.ngOnInit();
expect(component.errorReportEnabled).toBe(false);
});

});
Loading