This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit c23465fd authored by Eduard Frankford's avatar Eduard Frankford
Browse files

fixing angular tests

parent 2a4fcd5f
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -16,7 +16,6 @@ describe('PeerReviewingComponent', () => {
providers: [LocalStorageService, SessionStorageService],
}).compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(PeerReviewingComponent);
component = fixture.componentInstance;
......
......@@ -12,8 +12,8 @@ describe('ReviewManagementUpdateComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [HttpClientTestingModule, HttpClientModule],
declarations: [ReviewManagementUpdateComponent, TranslateModule.forRoot()],
imports: [HttpClientTestingModule, HttpClientModule, TranslateModule],
declarations: [ReviewManagementUpdateComponent],
providers: [LocalStorageService, SessionStorageService],
}).compileComponents();
});
......
import { HttpClientModule } from '@angular/common/http';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Router } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { LocalStorageService, SessionStorageService } from 'ngx-webstorage';
......@@ -14,7 +15,7 @@ describe('ReviewManagementComponent', () => {
await TestBed.configureTestingModule({
imports: [HttpClientTestingModule, HttpClientModule, TranslateModule.forRoot()],
declarations: [ReviewManagementComponent],
providers: [LocalStorageService, SessionStorageService],
providers: [LocalStorageService, SessionStorageService, Router],
}).compileComponents();
});
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment