Browse Source

fix lint issues

pull/17855/head
Mahmut Gundogdu 3 years ago
parent
commit
1be36f1a51
  1. 2
      npm/ng-packs/packages/core/src/lib/tests/capsLock.directive.spec.ts
  2. 4
      npm/ng-packs/packages/core/src/lib/tests/show-password-directive.spec.ts

2
npm/ng-packs/packages/core/src/lib/tests/capsLock.directive.spec.ts

@ -11,7 +11,7 @@ import { By } from '@angular/platform-browser';
imports:[TrackCapsLockDirective] imports:[TrackCapsLockDirective]
}) })
class TestComponent { class TestComponent {
capsLock:boolean = false capsLock = false
} }
describe('TrackCapsLockDirective',()=>{ describe('TrackCapsLockDirective',()=>{

4
npm/ng-packs/packages/core/src/lib/tests/show-password-directive.spec.ts

@ -13,7 +13,7 @@ import { By } from '@angular/platform-browser';
imports:[ShowPasswordDirective] imports:[ShowPasswordDirective]
}) })
class TestComponent { class TestComponent {
showPassword:boolean = false showPassword = false
} }
describe('ShowPasswordDirective',()=>{ describe('ShowPasswordDirective',()=>{
@ -46,7 +46,7 @@ describe('ShowPasswordDirective',()=>{
}); });
it('should have three input has ShowPasswordDirective elements', () => { it('should have three input has ShowPasswordDirective elements', () => {
let input = des[2].nativeElement const input = des[2].nativeElement
expect(input.type).toBe('password') expect(input.type).toBe('password')
fixture.componentInstance.showPassword = true fixture.componentInstance.showPassword = true
fixture.detectChanges() fixture.detectChanges()

Loading…
Cancel
Save