Skip to content

Commit 02d22d0

Browse files
committed
Create courses.service.spec.ts
1 parent a4e953f commit 02d22d0

File tree

1 file changed

+22
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)