Skip to content

Commit

Permalink
Switched from imports to declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablosanqt committed Oct 10, 2024
1 parent fc3e2d1 commit 90fd4f8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ describe('IconCardComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [IconCardComponent],
declarations: [MockDirective(TranslateDirective)],
imports: [],
declarations: [IconCardComponent, MockDirective(TranslateDirective)],
}).compileComponents();

fixture = TestBed.createComponent(IconCardComponent);
Expand All @@ -26,8 +26,6 @@ describe('IconCardComponent', () => {
it('should display the default headerIcon and headline', () => {
expect(component.headerIcon()).toBe(faCircleInfo);
expect(component.headline()).toBe('Title');

fixture.detectChanges();
});

it('should display custom headerIcon and headline when inputs are set', () => {
Expand Down

0 comments on commit 90fd4f8

Please sign in to comment.