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

Skip to content
Snippets Groups Projects
peer-reviewing.component.spec.ts 1.05 KiB
Newer Older
import { ComponentFixture, TestBed } from '@angular/core/testing';
Eduard Frankford's avatar
Eduard Frankford committed
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { HttpClientModule } from '@angular/common/http';
import { PeerReviewingComponent } from './peer-reviewing.component';
Eduard Frankford's avatar
Eduard Frankford committed
import { TranslateModule } from '@ngx-translate/core';
Eduard Frankford's avatar
Eduard Frankford committed
import { LocalStorageService, SessionStorageService } from 'ngx-webstorage';

describe('PeerReviewingComponent', () => {
  let component: PeerReviewingComponent;
  let fixture: ComponentFixture<PeerReviewingComponent>;

  beforeEach(async () => {
    await TestBed.configureTestingModule({
Eduard Frankford's avatar
Eduard Frankford committed
      imports: [HttpClientTestingModule, HttpClientModule, TranslateModule.forRoot()],
      declarations: [PeerReviewingComponent],
Eduard Frankford's avatar
Eduard Frankford committed
      providers: [LocalStorageService, SessionStorageService],
    }).compileComponents();
  });
  beforeEach(() => {
    fixture = TestBed.createComponent(PeerReviewingComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});