Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
weiquu authored Nov 29, 2023
2 parents 118fda4 + 03569a9 commit 1f4c831
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 1f4c831

Please sign in to comment.