Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
breity committed Oct 16, 2023
1 parent b9a87f1 commit 0290ea8
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { StudentTeacherCommonServicesModule } from '../../../../../app/student-t
import { MatRadioModule } from '@angular/material/radio';
import { FormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { MatDividerModule } from '@angular/material/divider';

describe('ChooseAutomatedAssessmentComponent', () => {
let component: ChooseAutomatedAssessmentComponent;
Expand All @@ -17,6 +18,7 @@ describe('ChooseAutomatedAssessmentComponent', () => {
imports: [
FormsModule,
HttpClientTestingModule,
MatDividerModule,
MatRadioModule,
RouterTestingModule,
StudentTeacherCommonServicesModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { FormsModule } from '@angular/forms';
import { MatInputModule } from '@angular/material/input';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { MatDividerModule } from '@angular/material/divider';

describe('ChooseSimulationComponent', () => {
let component: ChooseSimulationComponent;
Expand All @@ -21,6 +22,7 @@ describe('ChooseSimulationComponent', () => {
BrowserAnimationsModule,
FormsModule,
HttpClientTestingModule,
MatDividerModule,
MatFormFieldModule,
MatInputModule,
MatSelectModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
import { FormsModule } from '@angular/forms';
import { StudentTeacherCommonServicesModule } from '../../../../../app/student-teacher-common-services.module';
import { RouterTestingModule } from '@angular/router/testing';
import { MatDividerModule } from '@angular/material/divider';

describe('ConfigureAutomatedAssessmentComponent', () => {
let component: ConfigureAutomatedAssessmentComponent;
Expand All @@ -15,6 +16,7 @@ describe('ConfigureAutomatedAssessmentComponent', () => {
imports: [
FormsModule,
HttpClientTestingModule,
MatDividerModule,
RouterTestingModule,
StudentTeacherCommonServicesModule
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { TeacherProjectService } from '../../../services/teacherProjectService';
import { StudentTeacherCommonServicesModule } from '../../../../../app/student-teacher-common-services.module';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { MatDividerModule } from '@angular/material/divider';

describe('ChooseStructureLocationComponent', () => {
let component: ChooseStructureLocationComponent;
Expand All @@ -16,6 +17,7 @@ describe('ChooseStructureLocationComponent', () => {
imports: [
HttpClientTestingModule,
MatIconModule,
MatDividerModule,
RouterTestingModule,
StudentTeacherCommonServicesModule
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
import { MatRadioModule } from '@angular/material/radio';
import { FormsModule } from '@angular/forms';
import { RouterTestingModule } from '@angular/router/testing';
import { MatDividerModule } from '@angular/material/divider';

describe('JigsawComponent', () => {
let component: JigsawComponent;
Expand All @@ -12,7 +13,13 @@ describe('JigsawComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [JigsawComponent],
imports: [FormsModule, HttpClientTestingModule, MatRadioModule, RouterTestingModule]
imports: [
FormsModule,
HttpClientTestingModule,
MatDividerModule,
MatRadioModule,
RouterTestingModule
]
}).compileComponents();
fixture = TestBed.createComponent(JigsawComponent);
component = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
import { KiCycleUsingOerComponent } from './ki-cycle-using-oer.component';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { MatDividerModule } from '@angular/material/divider';

describe('KiCycleUsingOERComponent', () => {
let component: KiCycleUsingOerComponent;
Expand All @@ -10,7 +11,7 @@ describe('KiCycleUsingOERComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [KiCycleUsingOerComponent],
imports: [HttpClientTestingModule, RouterTestingModule]
imports: [HttpClientTestingModule, MatDividerModule, RouterTestingModule]
}).compileComponents();
fixture = TestBed.createComponent(KiCycleUsingOerComponent);
component = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PeerReviewAndRevisionComponent } from './peer-review-and-revision.component';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { MatDividerModule } from '@angular/material/divider';

describe('PeerReviewAndRevisionComponent', () => {
let component: PeerReviewAndRevisionComponent;
Expand All @@ -10,7 +11,7 @@ describe('PeerReviewAndRevisionComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [PeerReviewAndRevisionComponent],
imports: [HttpClientTestingModule, RouterTestingModule]
imports: [HttpClientTestingModule, MatDividerModule, RouterTestingModule]
}).compileComponents();
fixture = TestBed.createComponent(PeerReviewAndRevisionComponent);
component = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SelfDirectedInvestigationComponent } from './self-directed-investigation.component';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { MatDividerModule } from '@angular/material/divider';

describe('SelfDirectedInvestigationComponent2', () => {
let component: SelfDirectedInvestigationComponent;
Expand All @@ -10,7 +11,7 @@ describe('SelfDirectedInvestigationComponent2', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [SelfDirectedInvestigationComponent],
imports: [HttpClientTestingModule, RouterTestingModule]
imports: [HttpClientTestingModule, MatDividerModule, RouterTestingModule]
}).compileComponents();
fixture = TestBed.createComponent(SelfDirectedInvestigationComponent);
component = fixture.componentInstance;
Expand Down

0 comments on commit 0290ea8

Please sign in to comment.