Skip to content

Commit

Permalink
[#12588] Added unit tests for ErrorReportComponent (#12610)
Browse files Browse the repository at this point in the history
* [#12588] Added unit tests for ErrorReportComponent

* [#12588] Added unit tests for ErrorReportComponent

* [#12588] Added unit tests for ErrorReportComponent

* [#12588] Added unit tests for ErrorReportComponent

* [#12588] Fixed Added unit tests for ErrorReportComponent

---------

Co-authored-by: Wei Qing <[email protected]>
  • Loading branch information
u7488099 and weiquu authored Nov 29, 2023
1 parent 87472fb commit 03569a9
Showing 1 changed file with 6 additions and 0 deletions.
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);
});

});

0 comments on commit 03569a9

Please sign in to comment.