mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
[DSC-192] lint fixes
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -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);
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user