[ACS-5540]lint fixes

This commit is contained in:
Yasa-Nataliya
2023-10-09 20:22:06 +05:30
parent 80d68add3d
commit b8b921ccff
@@ -77,16 +77,19 @@ describe('ContentMetadataComponent', () => {
const findTagElements = (): DebugElement[] => fixture.debugElement.queryAll(By.css('.adf-metadata-properties .adf-metadata-properties-tag'));
const findCancelButton = (): HTMLButtonElement => fixture.debugElement.query(By.css('[data-automation-id=reset-metadata]')).nativeElement;
const findCancelTagsButton = (): HTMLButtonElement => fixture.debugElement.query(By.css('[data-automation-id=reset-tags-metadata]')).nativeElement;
const findCancelTagsButton = (): HTMLButtonElement =>
fixture.debugElement.query(By.css('[data-automation-id=reset-tags-metadata]')).nativeElement;
const clickOnCancel = () => {
findCancelButton().click();
fixture.detectChanges();
};
const findSaveGeneralInfoButton = (): HTMLButtonElement => fixture.debugElement.query(By.css('[data-automation-id=save-general-info-metadata]')).nativeElement;
const findSaveGeneralInfoButton = (): HTMLButtonElement =>
fixture.debugElement.query(By.css('[data-automation-id=save-general-info-metadata]')).nativeElement;
const findSaveTagsButton = (): HTMLButtonElement => fixture.debugElement.query(By.css('[data-automation-id=save-tags-metadata]')).nativeElement;
const findSaveCategoriesButton = (): HTMLButtonElement => fixture.debugElement.query(By.css('[data-automation-id=save-categories-metadata]')).nativeElement;
const findSaveCategoriesButton = (): HTMLButtonElement =>
fixture.debugElement.query(By.css('[data-automation-id=save-categories-metadata]')).nativeElement;
const clickOnGeneralInfoSave = () => {
findSaveGeneralInfoButton().click();
@@ -435,7 +438,8 @@ describe('ContentMetadataComponent', () => {
describe('toggleEdit', () => {
let mockEvent: MouseEvent;
let mockGroup: CardViewGroup = {
editable: false, expanded: false,
editable: false,
expanded: false,
title: '',
properties: []
};
@@ -509,7 +513,8 @@ describe('ContentMetadataComponent', () => {
it('should toggle group editable', () => {
const group: CardViewGroup = {
editable: false, expanded: false,
editable: false,
expanded: false,
title: '',
properties: []
};
@@ -661,7 +666,6 @@ describe('ContentMetadataComponent', () => {
});
it('should hide card views group when the grouped properties are empty', async () => {
spyOn(contentMetadataService, 'getGroupedProperties').and.stub();
component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) });