mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 11:33:04 +00:00
[DSC-192] lint fixes
This commit is contained in:
@@ -472,7 +472,8 @@ describe('EditInPlaceFieldComponent', () => {
|
||||
fixture.detectChanges();
|
||||
});
|
||||
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);
|
||||
});
|
||||
});
|
||||
@@ -483,7 +484,8 @@ describe('EditInPlaceFieldComponent', () => {
|
||||
fixture.detectChanges();
|
||||
});
|
||||
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);
|
||||
});
|
||||
});
|
||||
@@ -494,7 +496,8 @@ describe('EditInPlaceFieldComponent', () => {
|
||||
fixture.detectChanges();
|
||||
});
|
||||
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);
|
||||
});
|
||||
});
|
||||
|
@@ -68,11 +68,11 @@ describe('ValidationSuggestionsComponent', () => {
|
||||
});
|
||||
it('it should be true', () => {
|
||||
fixture.detectChanges();
|
||||
let input = fixture.debugElement.query(By.css('input'));
|
||||
let el = input.nativeElement;
|
||||
expect(el.readOnly).toBe(true)
|
||||
const input = fixture.debugElement.query(By.css('input'));
|
||||
const element = input.nativeElement;
|
||||
expect(element.readOnly).toBe(true);
|
||||
});
|
||||
})
|
||||
});
|
||||
describe('test input field readonly property when input disable is false', () => {
|
||||
beforeEach(() => {
|
||||
comp.disable = false;
|
||||
@@ -80,10 +80,10 @@ describe('ValidationSuggestionsComponent', () => {
|
||||
});
|
||||
it('it should be true', () => {
|
||||
fixture.detectChanges();
|
||||
let input = fixture.debugElement.query(By.css('input'));
|
||||
let el = input.nativeElement;
|
||||
expect(el.readOnly).toBe(false)
|
||||
const input = fixture.debugElement.query(By.css('input'));
|
||||
const element = input.nativeElement;
|
||||
expect(element.readOnly).toBe(false);
|
||||
});
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user