Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesWt committed Oct 8, 2024
1 parent e5d8554 commit 81b451f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,15 @@ describe('CourseOverviewComponent', () => {
router = new MockRouter();

TestBed.configureTestingModule({
imports: [ArtemisTestModule, MockModule(MatSidenavModule), MockModule(NgbTooltipModule), MockModule(BrowserAnimationsModule), NgbDropdownMocksModule],
declarations: [
imports: [
RouterModule.forRoot([]),
ArtemisTestModule,
MockModule(MatSidenavModule),
MockModule(NgbTooltipModule),
MockModule(BrowserAnimationsModule),
NgbDropdownMocksModule,
],
declarations: [
CourseOverviewComponent,
MockDirective(MockHasAnyAuthorityDirective),
MockDirective(OrionFilterDirective),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { FileUploadExerciseDetailComponent } from 'app/exercises/file-upload/man
import { MockFileUploadExerciseService, fileUploadExercise } from '../../helpers/mocks/service/mock-file-upload-exercise.service';
import { JhiLanguageHelper } from 'app/core/language/language.helper';
import { AlertService } from 'app/core/util/alert.service';
import {} from '@angular/router/testing';
import { MockSyncStorage } from '../../helpers/mocks/service/mock-sync-storage.service';
import { LocalStorageService, SessionStorageService } from 'ngx-webstorage';
import { FileUploadExerciseService } from 'app/exercises/file-upload/manage/file-upload-exercise.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('FooterComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [FooterComponent, MockPipe(ArtemisTranslatePipe), RouterModule.forRoot([])],
imports: [ArtemisTestModule, TranslateModule.forRoot()],
declarations: [FooterComponent, MockPipe(ArtemisTranslatePipe)],
imports: [ArtemisTestModule, TranslateModule.forRoot(), RouterModule.forRoot([])],
providers: [],
}).compileComponents();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import { ProgrammingExerciseService } from 'app/exercises/programming/manage/ser
import { CodeEditorRepositoryFileService } from 'app/exercises/programming/shared/code-editor/service/code-editor-repository.service';
import { CodeEditorFileBrowserComponent } from 'app/exercises/programming/shared/code-editor/file-browser/code-editor-file-browser.component';
import { FileType } from 'app/exercises/programming/shared/code-editor/model/code-editor.model';
import {} from '@angular/router/testing';
import { CodeEditorContainerComponent } from 'app/exercises/programming/shared/code-editor/container/code-editor-container.component';
import { ResultComponent } from 'app/exercises/shared/result/result.component';
import { IncludedInScoreBadgeComponent } from 'app/exercises/shared/exercise-headers/included-in-score-badge.component';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import {} from '@angular/router/testing';
import { CourseTutorialGroupCardComponent } from 'app/overview/course-tutorial-groups/course-tutorial-group-card/course-tutorial-group-card.component';
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
import { TranslateService } from '@ngx-translate/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { TutorialGroupDetailComponent } from 'app/course/tutorial-groups/shared/tutorial-group-detail/tutorial-group-detail.component';
import {} from '@angular/router/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ArtemisTranslatePipe } from 'app/shared/pipes/artemis-translate.pipe';
import { MockComponent, MockPipe, MockProvider } from 'ng-mocks';
Expand Down

0 comments on commit 81b451f

Please sign in to comment.