Skip to content

Commit

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

* [TEAMMATES#12588] Added unit tests for ErrorReportComponent

* [TEAMMATES#12588] Added unit tests for ErrorReportComponent

* [TEAMMATES#12588] Added unit tests for ErrorReportComponent

* [TEAMMATES#12588] Added unit tests for ErrorReportComponent

* [TEAMMATES#12588] Fixed Added unit tests for ErrorReportComponent

---------

Co-authored-by: Wei Qing <[email protected]>
  • Loading branch information
2 people authored and cedricongjh committed Feb 20, 2024
1 parent d916b01 commit b4a966f
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 b4a966f

Please sign in to comment.