diff --git a/packages/abc/cell/cell.spec.ts b/packages/abc/cell/cell.spec.ts index 6b36ef8b6..a2163a177 100644 --- a/packages/abc/cell/cell.spec.ts +++ b/packages/abc/cell/cell.spec.ts @@ -9,6 +9,7 @@ import { of } from 'rxjs'; import { cleanCdkOverlayHtml, createTestContext } from '@delon/testing'; import { WINDOW } from '@delon/util/token'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; +import { NzIconTestModule } from 'ng-zorro-antd/icon/testing'; import { NzImageService } from 'ng-zorro-antd/image'; import { NzTooltipDirective } from 'ng-zorro-antd/tooltip'; @@ -28,7 +29,7 @@ describe('abc: cell', () => { const moduleAction = (): void => { TestBed.configureTestingModule({ - imports: [CellModule, NoopAnimationsModule, BrowserModule, RouterTestingModule.withRoutes([])], + imports: [CellModule, NoopAnimationsModule, BrowserModule, RouterTestingModule.withRoutes([]), NzIconTestModule], declarations: [TestComponent, TestWidget] }); }; diff --git a/packages/form/widgets/upload/widget.spec.ts b/packages/form/widgets/upload/widget.spec.ts index 3225cf9b0..d1639f825 100644 --- a/packages/form/widgets/upload/widget.spec.ts +++ b/packages/form/widgets/upload/widget.spec.ts @@ -4,6 +4,7 @@ import { By } from '@angular/platform-browser'; import { createTestContext } from '@delon/testing'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; +import { NzIconTestModule } from 'ng-zorro-antd/icon/testing'; import { NzImageModule, NzImageService } from 'ng-zorro-antd/image'; import { NzUploadComponent } from 'ng-zorro-antd/upload'; @@ -18,7 +19,7 @@ describe('form: widget: upload', () => { let dl: DebugElement; const widget = 'upload'; - configureSFTestSuite({ widgets: [withUploadWidget()], imports: [NzImageModule] }); + configureSFTestSuite({ widgets: [withUploadWidget()], imports: [NzImageModule, NzIconTestModule] }); beforeEach(() => { ({ fixture, dl, context } = createTestContext(TestFormComponent));