[DSC-192] lint fixes

This commit is contained in:
Corrado Lombardi
2021-09-24 18:49:13 +02:00
parent 010dee7a16
commit eb14b6c5ad
2 changed files with 15 additions and 12 deletions

View File

@@ -472,7 +472,8 @@ describe('EditInPlaceFieldComponent', () => {
fixture.detectChanges(); fixture.detectChanges();
}); });
it('can edit metadata field', () => { it('can edit metadata field', () => {
const disabledMetadataField = fixture.debugElement.query(By.css('ds-validation-suggestions')).componentInstance.disable const disabledMetadataField = fixture.debugElement.query(By.css('ds-validation-suggestions'))
.componentInstance.disable;
expect(disabledMetadataField).toBe(false); expect(disabledMetadataField).toBe(false);
}); });
}); });
@@ -483,7 +484,8 @@ describe('EditInPlaceFieldComponent', () => {
fixture.detectChanges(); fixture.detectChanges();
}); });
it('can edit metadata field', () => { it('can edit metadata field', () => {
const disabledMetadataField = fixture.debugElement.query(By.css('ds-validation-suggestions')).componentInstance.disable const disabledMetadataField = fixture.debugElement.query(By.css('ds-validation-suggestions'))
.componentInstance.disable;
expect(disabledMetadataField).toBe(true); expect(disabledMetadataField).toBe(true);
}); });
}); });
@@ -494,7 +496,8 @@ describe('EditInPlaceFieldComponent', () => {
fixture.detectChanges(); fixture.detectChanges();
}); });
it('can edit metadata field', () => { it('can edit metadata field', () => {
const disabledMetadataField = fixture.debugElement.query(By.css('ds-validation-suggestions')).componentInstance.disable const disabledMetadataField = fixture.debugElement.query(By.css('ds-validation-suggestions'))
.componentInstance.disable;
expect(disabledMetadataField).toBe(true); expect(disabledMetadataField).toBe(true);
}); });
}); });

View File

@@ -68,11 +68,11 @@ describe('ValidationSuggestionsComponent', () => {
}); });
it('it should be true', () => { it('it should be true', () => {
fixture.detectChanges(); fixture.detectChanges();
let input = fixture.debugElement.query(By.css('input')); const input = fixture.debugElement.query(By.css('input'));
let el = input.nativeElement; const element = input.nativeElement;
expect(el.readOnly).toBe(true) expect(element.readOnly).toBe(true);
}); });
}) });
describe('test input field readonly property when input disable is false', () => { describe('test input field readonly property when input disable is false', () => {
beforeEach(() => { beforeEach(() => {
comp.disable = false; comp.disable = false;
@@ -80,10 +80,10 @@ describe('ValidationSuggestionsComponent', () => {
}); });
it('it should be true', () => { it('it should be true', () => {
fixture.detectChanges(); fixture.detectChanges();
let input = fixture.debugElement.query(By.css('input')); const input = fixture.debugElement.query(By.css('input'));
let el = input.nativeElement; const element = input.nativeElement;
expect(el.readOnly).toBe(false) expect(element.readOnly).toBe(false);
}); });
}) });
}) });
}); });