Skip to content

Commit

Permalink
revert changes to test runs module
Browse files Browse the repository at this point in the history
  • Loading branch information
coolchock committed Jan 2, 2025
1 parent 2c23cbd commit 5d48e0c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/main/webapp/app/exam/manage/exam-management.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { DurationPipe } from 'app/shared/pipes/artemis-duration.pipe';
import { StudentExamStatusComponent } from 'app/exam/manage/student-exams/student-exam-status/student-exam-status.component';
import { StudentExamSummaryComponent } from 'app/exam/manage/student-exams/student-exam-summary.component';
import { ArtemisParticipationSummaryModule } from 'app/exam/participate/summary/exam-result-summary.module';
import { ExamExerciseRowButtonsComponent } from 'app/exercises/shared/exam-exercise-row-buttons/exam-exercise-row-buttons.component';
import { ArtemisProgrammingExerciseStatusModule } from 'app/exercises/programming/manage/status/programming-exercise-status.module';
import { TestRunManagementComponent } from 'app/exam/manage/test-runs/test-run-management.component';
import { CreateTestRunModalComponent } from 'app/exam/manage/test-runs/create-test-run-modal.component';
Expand Down Expand Up @@ -108,7 +107,6 @@ const ENTITY_STATES = [...examManagementState];
ExamManagementComponent,
ExamUpdateComponent,
ExamDetailComponent,
ExamExerciseRowButtonsComponent,
ExamStudentsComponent,
ExamStudentsAttendanceCheckComponent,
StudentExamStatusComponent,
Expand All @@ -132,6 +130,6 @@ const ENTITY_STATES = [...examManagementState];
StudentExamTimelineComponent,
ProgrammingExerciseExamDiffComponent,
],
exports: [ExamExerciseRowButtonsComponent, ArtemisSharedModule, ArtemisSharedComponentModule],
exports: [ArtemisSharedModule, ArtemisSharedComponentModule],
})
export class ArtemisExamManagementModule {}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit, inject } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Subject, forkJoin, of } from 'rxjs';
import { catchError } from 'rxjs/operators';
import { ExerciseGroupService } from 'app/exam/manage/exercise-groups/exercise-group.service';
Expand Down Expand Up @@ -37,7 +37,10 @@ import { ProgrammingExerciseGroupCellComponent } from 'app/exam/manage/exercise-
import { QuizExerciseGroupCellComponent } from 'app/exam/manage/exercise-groups/quiz-exercise-cell/quiz-exercise-group-cell.component';
import { ModelingExerciseGroupCellComponent } from 'app/exam/manage/exercise-groups/modeling-exercise-cell/modeling-exercise-group-cell.component';
import { FileUploadExerciseGroupCellComponent } from 'app/exam/manage/exercise-groups/file-upload-exercise-cell/file-upload-exercise-group-cell.component';
import { ArtemisExamManagementModule } from 'app/exam/manage/exam-management.module';
import { ArtemisTranslatePipe } from 'app/shared/pipes/artemis-translate.pipe';
import { ArtemisSharedModule } from 'app/shared/shared.module';
import { ArtemisSharedComponentModule } from 'app/shared/components/shared-component.module';
import { ExamExerciseRowButtonsComponent } from 'app/exercises/shared/exam-exercise-row-buttons/exam-exercise-row-buttons.component';

@Component({
selector: 'jhi-exercise-groups',
Expand All @@ -49,7 +52,11 @@ import { ArtemisExamManagementModule } from 'app/exam/manage/exam-management.mod
QuizExerciseGroupCellComponent,
ModelingExerciseGroupCellComponent,
FileUploadExerciseGroupCellComponent,
ArtemisExamManagementModule,
ArtemisTranslatePipe,
RouterLink,
ArtemisSharedModule,
ArtemisSharedComponentModule,
ExamExerciseRowButtonsComponent,
],
})
export class ExerciseGroupsComponent implements OnInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ import { faBook, faExclamationTriangle, faEye, faFileExport, faFileSignature, fa
import { faListAlt } from '@fortawesome/free-regular-svg-icons';
import { PROFILE_LOCALCI, PROFILE_LOCALVC } from 'app/app.constants';
import { ProfileService } from 'app/shared/layouts/profiles/profile.service';
import { ArtemisSharedModule } from 'app/shared/shared.module';

@Component({
selector: 'jhi-exam-exercise-row-buttons',
templateUrl: './exam-exercise-row-buttons.component.html',
standalone: true,
imports: [ArtemisSharedModule],
})
export class ExamExerciseRowButtonsComponent implements OnInit {
@Input() course: Course;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ describe('Exercise Groups Component', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [ArtemisTestModule, ExerciseGroupsComponent],
providers: [{ provide: ActivatedRoute, useValue: route }, { provide: Router, useClass: MockRouter }, MockProvider(AlertService)],
providers: [
{ provide: ActivatedRoute, useValue: route },
{ provide: Router, useClass: MockRouter },
MockProvider(AlertService),
{ provide: NgbModal, useClass: MockNgbModalService },
],
})
.overrideProvider(NgbModal, { useValue: new MockNgbModalService() })
.compileComponents()
Expand All @@ -60,7 +65,7 @@ describe('Exercise Groups Component', () => {
exerciseGroupService = TestBed.inject(ExerciseGroupService);
examManagementService = TestBed.inject(ExamManagementService);
eventManager = TestBed.inject(EventManager);
modalService = TestBed.inject(NgbModal);
modalService = fixture.debugElement.injector.get(NgbModal);
alertService = TestBed.inject(AlertService);
router = TestBed.inject(Router);

Expand Down

0 comments on commit 5d48e0c

Please sign in to comment.