11import { Store } from '@ngxs/store' ;
22
3- import { MockComponents } from 'ng-mocks' ;
3+ import { MockComponents , MockProviders } from 'ng-mocks' ;
44
55import { signal , WritableSignal } from '@angular/core' ;
66import { ComponentFixture , TestBed } from '@angular/core/testing' ;
77import { By } from '@angular/platform-browser' ;
88
9- import { LoadingSpinnerComponent , MyProjectsTableComponent , SubHeaderComponent } from '@shared/components' ;
9+ import { CustomConfirmationService , CustomDialogService , ProjectRedirectDialogService } from '@osf/shared/services' ;
10+ import {
11+ LoadingSpinnerComponent ,
12+ MyProjectsTableComponent ,
13+ SearchInputComponent ,
14+ SubHeaderComponent ,
15+ } from '@shared/components' ;
1016import { MyResourcesSelectors } from '@shared/stores' ;
1117
1218import { DashboardComponent } from './dashboard.component' ;
1319
1420import { getProjectsMockForComponent } from '@testing/data/dashboard/dasboard.data' ;
1521import { OSFTestingStoreModule } from '@testing/osf.testing.module' ;
1622
17- describe . skip ( 'DashboardComponent' , ( ) => {
23+ describe ( 'DashboardComponent' , ( ) => {
1824 let component : DashboardComponent ;
1925 let fixture : ComponentFixture < DashboardComponent > ;
2026
@@ -31,7 +37,7 @@ describe.skip('DashboardComponent', () => {
3137 imports : [
3238 DashboardComponent ,
3339 OSFTestingStoreModule ,
34- ...MockComponents ( SubHeaderComponent , MyProjectsTableComponent , LoadingSpinnerComponent ) ,
40+ ...MockComponents ( SubHeaderComponent , MyProjectsTableComponent , LoadingSpinnerComponent , SearchInputComponent ) ,
3541 ] ,
3642 providers : [
3743 {
@@ -46,14 +52,15 @@ describe.skip('DashboardComponent', () => {
4652 dispatch : jest . fn ( ) ,
4753 } ,
4854 } ,
55+ MockProviders ( CustomDialogService , CustomConfirmationService , ProjectRedirectDialogService ) ,
4956 ] ,
5057 } ) . compileComponents ( ) ;
5158
5259 fixture = TestBed . createComponent ( DashboardComponent ) ;
5360 component = fixture . componentInstance ;
5461 } ) ;
5562
56- it ( 'should show loading s pinner when projects are loading' , ( ) => {
63+ it ( 'should show loading spinner when projects are loading' , ( ) => {
5764 areProjectsLoadingSignal . set ( true ) ;
5865 fixture . detectChanges ( ) ;
5966
0 commit comments