@@ -6,7 +6,6 @@ import { provideMockStore, MockStore } from '@ngrx/store/testing';
6
6
import { TimeClockComponent } from './time-clock.component' ;
7
7
import { ProjectState } from '../../customer-management/components/projects/components/store/project.reducer' ;
8
8
import { ProjectListHoverComponent } from '../components' ;
9
- import { ProjectService } from '../../customer-management/components/projects/components/services/project.service' ;
10
9
import { FilterProjectPipe } from '../../shared/pipes' ;
11
10
import { AzureAdB2CService } from '../../login/services/azure.ad.b2c.service' ;
12
11
import { ActionsSubject } from '@ngrx/store' ;
@@ -15,7 +14,6 @@ describe('TimeClockComponent', () => {
15
14
let component : TimeClockComponent ;
16
15
let fixture : ComponentFixture < TimeClockComponent > ;
17
16
let store : MockStore < ProjectState > ;
18
- let projectService : ProjectService ;
19
17
let azureAdB2CService : AzureAdB2CService ;
20
18
const actionSub : ActionsSubject = new ActionsSubject ( ) ;
21
19
const state = {
@@ -46,7 +44,7 @@ describe('TimeClockComponent', () => {
46
44
TestBed . configureTestingModule ( {
47
45
imports : [ HttpClientTestingModule ] ,
48
46
declarations : [ TimeClockComponent , ProjectListHoverComponent , FilterProjectPipe ] ,
49
- providers : [ ProjectService ,
47
+ providers : [
50
48
AzureAdB2CService ,
51
49
{ provide : ActionsSubject , useValue : actionSub } ,
52
50
provideMockStore ( { initialState : state } ) ] ,
@@ -58,7 +56,6 @@ describe('TimeClockComponent', () => {
58
56
fixture = TestBed . createComponent ( TimeClockComponent ) ;
59
57
component = fixture . componentInstance ;
60
58
fixture . detectChanges ( ) ;
61
- projectService = TestBed . inject ( ProjectService ) ;
62
59
azureAdB2CService = TestBed . inject ( AzureAdB2CService ) ;
63
60
} ) ;
64
61
@@ -82,13 +79,6 @@ describe('TimeClockComponent', () => {
82
79
expect ( azureAdB2CService . getName ) . toHaveBeenCalledTimes ( 0 ) ;
83
80
} ) ;
84
81
85
- it ( 'Service injected via inject(...) and TestBed.get(...) should be the same instance' , inject (
86
- [ ProjectService ] ,
87
- ( injectService : ProjectService ) => {
88
- expect ( injectService ) . toBe ( projectService ) ;
89
- }
90
- ) ) ;
91
-
92
82
it ( 'clockOut dispatch a StopTimeEntryRunning action' , ( ) => {
93
83
spyOn ( store , 'dispatch' ) ;
94
84
0 commit comments