diff --git a/src/app/components/divider/divider.spec.ts b/src/app/components/divider/divider.spec.ts index 6f2bd7cce85..ac2be8d047e 100755 --- a/src/app/components/divider/divider.spec.ts +++ b/src/app/components/divider/divider.spec.ts @@ -1,6 +1,6 @@ import { ComponentRef } from '@angular/core'; import { TestBed, ComponentFixture } from '@angular/core/testing'; -import { Divider, DividerModule } from './divider'; +import { Divider } from './divider'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; describe('Divider', () => { @@ -10,7 +10,7 @@ describe('Divider', () => { beforeEach(() => { TestBed.configureTestingModule({ - imports: [NoopAnimationsModule, DividerModule], + imports: [NoopAnimationsModule, Divider], }); fixture = TestBed.createComponent(Divider); diff --git a/src/app/components/divider/divider.ts b/src/app/components/divider/divider.ts index dbbacf31ec6..aa115534ad7 100755 --- a/src/app/components/divider/divider.ts +++ b/src/app/components/divider/divider.ts @@ -7,6 +7,7 @@ import { DividerStyle } from './style/dividerstyle'; */ @Component({ selector: 'p-divider', + standalone: true, template: `
@@ -71,8 +72,7 @@ export class Divider extends BaseComponent { } @NgModule({ - imports: [], + imports: [Divider], exports: [Divider], - declarations: [Divider], }) export class DividerModule {}