Skip to content

Commit

Permalink
fix: (Core) directive test
Browse files Browse the repository at this point in the history
  • Loading branch information
artolshansky committed May 27, 2021
1 parent a7f95ca commit 1970ec7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ describe('QuickViewGroupItemContentElementDirective', () => {

beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [TestComponent],
imports: [QuickViewGroupItemContentElementDirective]
declarations: [TestComponent, QuickViewGroupItemContentElementDirective]
}).compileComponents();
}));

Expand All @@ -32,6 +31,6 @@ describe('QuickViewGroupItemContentElementDirective', () => {
});

it('should assign class', () => {
expect(component.ref.nativeElement.className).toBe('fd-quick-view__group-item__content-element');
expect(component.ref.nativeElement).toContain('fd-quick-view__group-item__content-element');
});
});

0 comments on commit 1970ec7

Please sign in to comment.