Skip to content

Commit

Permalink
fix student-exam-detail.component.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesWt committed Oct 8, 2024
1 parent e28ccaa commit e5d8554
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { MockComponent, MockDirective, MockPipe, MockProvider } from 'ng-mocks';
import { StudentExamService } from 'app/exam/manage/student-exams/student-exam.service';
import { HttpResponse, provideHttpClient } from '@angular/common/http';
import { of } from 'rxjs';
import { ActivatedRoute, provideRouter } from '@angular/router';
import { ActivatedRoute, RouterModule } from '@angular/router';
import { NgbModal, NgbModalRef, NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { NgxDatatableModule } from '@siemens/ngx-datatable';
import { TranslateModule } from '@ngx-translate/core';
Expand Down Expand Up @@ -127,7 +127,7 @@ describe('StudentExamDetailComponent', () => {
} as StudentExamWithGradeDTO;

await TestBed.configureTestingModule({
imports: [ArtemisTestModule, NgbModule, NgxDatatableModule, ReactiveFormsModule, TranslateModule.forRoot()],
imports: [ArtemisTestModule, NgbModule, NgxDatatableModule, ReactiveFormsModule, TranslateModule.forRoot(), RouterModule.forRoot([])],
declarations: [
StudentExamDetailComponent,
MockComponent(DataTableComponent),
Expand All @@ -141,7 +141,6 @@ describe('StudentExamDetailComponent', () => {
StudentExamDetailTableRowComponent,
],
providers: [
provideRouter([]),
provideHttpClient(),
provideHttpClientTesting(),
MockProvider(StudentExamService, {
Expand Down

0 comments on commit e5d8554

Please sign in to comment.