Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coolchock committed Jan 2, 2025
1 parent 5d48e0c commit 9d5f0a8
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ArtemisTestModule } from '../../test.module';
import { TranslatePipeMock } from '../../helpers/mocks/service/mock-translate.service';
import { ExamExerciseRowButtonsComponent } from 'app/exercises/shared/exam-exercise-row-buttons/exam-exercise-row-buttons.component';
import { Course } from 'app/entities/course.model';
import { TextExercise } from 'app/entities/text/text-exercise.model';
Expand All @@ -18,9 +17,7 @@ import { of, throwError } from 'rxjs';
import { HttpErrorResponse } from '@angular/common/http';
import { ProgrammingExerciseService } from 'app/exercises/programming/manage/services/programming-exercise.service';
import { ProgrammingExercise } from 'app/entities/programming/programming-exercise.model';
import { MockDirective, MockProvider } from 'ng-mocks';
import { DeleteButtonDirective } from 'app/shared/delete-dialog/delete-button.directive';
import { MockRouterLinkDirective } from '../../helpers/mocks/directive/mock-router-link.directive';
import { MockProvider } from 'ng-mocks';

describe('ExamExerciseRowButtonsComponent', () => {
const course = { id: 3 } as Course;
Expand Down Expand Up @@ -55,7 +52,6 @@ describe('ExamExerciseRowButtonsComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [ArtemisTestModule],
declarations: [ExamExerciseRowButtonsComponent, TranslatePipeMock, MockDirective(DeleteButtonDirective), MockRouterLinkDirective],
providers: [
MockProvider(TextExerciseService),
MockProvider(FileUploadExerciseService),
Expand Down

0 comments on commit 9d5f0a8

Please sign in to comment.