Skip to content

Commit

Permalink
Merge pull request #11294 from qmonmert/angeslint2
Browse files Browse the repository at this point in the history
Angular/ESLint: activate no-unsafe-call rule
  • Loading branch information
murdos authored Nov 3, 2024
2 parents 026e6ec + 7d3174d commit 3e60af4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default tseslint.config(
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
'arrow-body-style': 'error',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ describe('LoginComponent', () => {
it('should logout on click on logout button', () => {
jest.spyOn(oauth2AuthService, 'logout').mockImplementation();
fixture.debugElement.query(By.css('#btn-logout')).nativeElement.click();
const logoutButton = fixture.debugElement.query(By.css('#btn-logout')).nativeElement as HTMLElement;
logoutButton.click();
expect(oauth2AuthService.logout).toHaveBeenCalledWith();
});
Expand Down

0 comments on commit 3e60af4

Please sign in to comment.