Skip to content

Commit 9dbab46

Browse files
committed
used .get() instead of .inject()
1 parent e5564ad commit 9dbab46

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/app/courses/home/home.component.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('HomeComponent', () => {
4848
fixture = TestBed.createComponent(HomeComponent);
4949
component = fixture.componentInstance;
5050
el = fixture.debugElement;
51-
coursesService = TestBed.get(CoursesService);
51+
coursesService = TestBed.inject(CoursesService);
5252
});
5353

5454
}));

src/app/courses/services/calculator.service.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('CalculatorService', () => {
2121
]
2222
});
2323

24-
calculator = TestBed.get(CalculatorService);
24+
calculator = TestBed.inject(CalculatorService);
2525

2626
});
2727

@@ -50,4 +50,4 @@ describe('CalculatorService', () => {
5050

5151
});
5252

53-
});
53+
});

src/app/courses/services/courses.services.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ describe('CoursesService', () => {
2222
]
2323
});
2424

25-
coursesService = TestBed.get(CoursesService),
26-
httpTestingController = TestBed.get(HttpTestingController);
25+
coursesService = TestBed.inject(CoursesService),
26+
httpTestingController = TestBed.inject(HttpTestingController);
2727

2828
});
2929

0 commit comments

Comments
 (0)