diff --git a/lib/content-services/src/lib/folder-directive/folder-edit.directive.spec.ts b/lib/content-services/src/lib/folder-directive/folder-edit.directive.spec.ts index 9722738e967..a986b67f506 100644 --- a/lib/content-services/src/lib/folder-directive/folder-edit.directive.spec.ts +++ b/lib/content-services/src/lib/folder-directive/folder-edit.directive.spec.ts @@ -51,7 +51,7 @@ describe('FolderEditDirective', () => { beforeEach(() => { TestBed.configureTestingModule({ - imports: [ContentTestingModule], + imports: [ContentTestingModule, FolderEditDirective], declarations: [TestComponent] }); fixture = TestBed.createComponent(TestComponent); @@ -69,8 +69,7 @@ describe('FolderEditDirective', () => { spyOn(dialog, 'open').and.returnValue(dialogRefMock); }); - // eslint-disable-next-line - xit('should not emit folderEdit event when input value is undefined', async () => { + it('should not emit folderEdit event when input value is undefined', async () => { spyOn(dialogRefMock, 'afterClosed').and.returnValue(of(null)); spyOn(contentService.folderEdit, 'next'); @@ -81,8 +80,7 @@ describe('FolderEditDirective', () => { expect(contentService.folderEdit.next).not.toHaveBeenCalled(); }); - // eslint-disable-next-line - xit('should emit success event with node if the folder creation was successful', async () => { + it('should emit success event with node if the folder creation was successful', async () => { fixture.detectChanges(); const testNode: any = {}; @@ -93,8 +91,7 @@ describe('FolderEditDirective', () => { await fixture.whenStable(); expect(fixture.componentInstance.successParameter).toBe(testNode); }); - // eslint-disable-next-line - xit('should open the dialog with the proper title', async () => { + it('should open the dialog with the proper title', async () => { fixture.detectChanges(); element.triggerEventHandler('click', event); diff --git a/lib/content-services/src/lib/folder-directive/folder-edit.directive.ts b/lib/content-services/src/lib/folder-directive/folder-edit.directive.ts index 694916b85da..81b13f9da9e 100644 --- a/lib/content-services/src/lib/folder-directive/folder-edit.directive.ts +++ b/lib/content-services/src/lib/folder-directive/folder-edit.directive.ts @@ -26,7 +26,8 @@ import { ContentService } from '../common/services/content.service'; const DIALOG_WIDTH: number = 400; @Directive({ - selector: '[adf-edit-folder]' + selector: '[adf-edit-folder]', + standalone: true }) export class FolderEditDirective { /** Folder node to edit. */