Skip to content

Commit

Permalink
Angular/ESLint: activate no-unsafe-call rule
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Nov 3, 2024
1 parent f936eef commit 7d3174d
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 }],
},
},
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 7d3174d

Please sign in to comment.