Skip to content

Commit 1d007e2

Browse files
author
Your Name
committed
Angular Testing Course
1 parent e718b5b commit 1d007e2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import {CoursesService} from './courses.service';
2+
import {TestBed} from '@angular/core/testing';
3+
import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
4+
5+
6+
describe('CoursesService', () => {
7+
8+
let coursesService: CoursesService,
9+
httpTestingController: HttpTestingController;
10+
11+
beforeEach(() => {
12+
13+
TestBed.configureTestingModule({
14+
providers: [
15+
CoursesService,
16+
HttpClientTestingModule
17+
]
18+
});
19+
20+
coursesService = TestBed.get(CoursesService),
21+
httpTestingController = TestBed.get(HttpTestingController);
22+
23+
});
24+
25+
it('should retrieve all courses', () => {
26+
27+
28+
});
29+
30+
31+
});

0 commit comments

Comments
 (0)