Skip to content

Commit

Permalink
Fix one archive test
Browse files Browse the repository at this point in the history
  • Loading branch information
edkaya committed Sep 21, 2024
1 parent 16bf752 commit 2d54c39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ describe('CourseArchiveComponent', () => {
const emptyCourses: Course[] = [];
const getCoursesForArchiveSpy = jest.spyOn(courseService, 'getCoursesForArchive');

component.ngOnInit();
const req = httpMock.expectOne({ method: 'GET', url: `api/courses/archive` });
component.ngOnInit();

expect(getCoursesForArchiveSpy).toHaveBeenCalledOnce();
req.flush(null);
Expand Down

0 comments on commit 2d54c39

Please sign in to comment.