diff --git a/alfa-client/libs/admin/shared/src/lib/admin-delete-open-dialog-button/admin-delete-open-dialog-button.component.spec.ts b/alfa-client/libs/admin/shared/src/lib/admin-delete-open-dialog-button/admin-delete-open-dialog-button.component.spec.ts index 28b1b18ace06e3f4d00159e9e6cb4b43e0f4df5b..fb5b38157ce3f74282a8c50692b9224f6ac22545 100644 --- a/alfa-client/libs/admin/shared/src/lib/admin-delete-open-dialog-button/admin-delete-open-dialog-button.component.spec.ts +++ b/alfa-client/libs/admin/shared/src/lib/admin-delete-open-dialog-button/admin-delete-open-dialog-button.component.spec.ts @@ -1,5 +1,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { OpenDialogButtonComponent } from '@ods/component'; +import { DeleteIconComponent } from '@ods/system'; +import { MockComponent } from 'ng-mocks'; import { AdminDeleteOpenDialogButtonComponent } from './admin-delete-open-dialog-button.component'; describe('AdminDeleteOpenDialogButtonComponent', () => { @@ -8,9 +11,9 @@ describe('AdminDeleteOpenDialogButtonComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - imports: [AdminDeleteOpenDialogButtonComponent] - }) - .compileComponents(); + imports: [AdminDeleteOpenDialogButtonComponent], + declarations: [MockComponent(OpenDialogButtonComponent), MockComponent(DeleteIconComponent)], + }).compileComponents(); fixture = TestBed.createComponent(AdminDeleteOpenDialogButtonComponent); component = fixture.componentInstance;