Skip to content

Commit

Permalink
fix(image-input-form): test file
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanmyrza committed Sep 21, 2023
1 parent 2422a83 commit db835a6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';

import { SharedModule } from '../../../../shared/shared.module';
import { MatIconRegistry } from '@angular/material/icon';
import { FakeMatIconRegistry } from '@angular/material/icon/testing';
import { SharedTestingModule } from '../../../../shared/shared-testing.module';
import { ImageInputFormComponent } from './image-input-form.component';

describe('ImageInputFormComponent', () => {
Expand All @@ -11,7 +13,10 @@ describe('ImageInputFormComponent', () => {
waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ImageInputFormComponent],
imports: [SharedModule],
imports: [SharedTestingModule],
providers: [
{ provide: MatIconRegistry, useClass: FakeMatIconRegistry },
],
}).compileComponents();

fixture = TestBed.createComponent(ImageInputFormComponent);
Expand Down

0 comments on commit db835a6

Please sign in to comment.