diff --git a/src/app/components/divider/divider.spec.ts b/src/app/components/divider/divider.spec.ts index f41d2e0b19c..2372a25c2e0 100755 --- a/src/app/components/divider/divider.spec.ts +++ b/src/app/components/divider/divider.spec.ts @@ -19,7 +19,6 @@ describe('Divider', () => { it('should display by default', () => { fixture.detectChanges(); - const dividerEl = fixture.debugElement.query(By.css('.p-divider')); - expect(dividerEl.nativeElement).toBeTruthy(); + expect(fixture.nativeElement.classList).toContain('p-divider'); }); });