Skip to content

Commit caf2810

Browse files
committed
feat(contributors): fix tests
1 parent b559d95 commit caf2810

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/app/shared/components/contributors/remove-contributor-dialog/remove-contributor-dialog.component.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
44

55
import { RemoveContributorDialogComponent } from './remove-contributor-dialog.component';
66

7+
import { OSFTestingModule } from '@testing/osf.testing.module';
8+
79
describe('RemoveContributorDialogComponent', () => {
810
let component: RemoveContributorDialogComponent;
911
let fixture: ComponentFixture<RemoveContributorDialogComponent>;
@@ -13,10 +15,13 @@ describe('RemoveContributorDialogComponent', () => {
1315
dialogRef = { close: jest.fn() } as any;
1416

1517
await TestBed.configureTestingModule({
16-
imports: [RemoveContributorDialogComponent],
18+
imports: [RemoveContributorDialogComponent, OSFTestingModule],
1719
providers: [
1820
{ provide: DynamicDialogRef, useValue: dialogRef },
19-
{ provide: DynamicDialogConfig, useValue: { data: { name: 'John Doe', hasChildren: true } } },
21+
{
22+
provide: DynamicDialogConfig,
23+
useValue: { data: { name: 'John Doe', hasChildren: true } },
24+
},
2025
],
2126
}).compileComponents();
2227

0 commit comments

Comments
 (0)