Newer
Older
import { Observable, of } from 'rxjs';
import { Note } from './../../core/models/note';
pnogal
committed
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { SharedModule } from '@app/shared/shared.module';
import { CoreModule } from '@app/core/core.module';
import { HttpClient, HttpClientModule } from '@angular/common/http';
pnogal
committed
import { TermContainerComponent } from './term-container.component';
import { PlannedTerm } from '@app/core/models/planned-term';
import { SidenavService } from '@app/core/service/sidenav.service';
pnogal
committed
describe('TermContainerComponent', () => {
let termComponent: TermContainerComponent;
let fixture: ComponentFixture<TermContainerComponent>;
pnogal
committed
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
HttpClientModule,
CoreModule,
SharedModule,
],
declarations: [TermContainerComponent],
providers: [SidenavService],
schemas: [NO_ERRORS_SCHEMA],
}).compileComponents();
}));
pnogal
committed
beforeEach(() => {
fixture = TestBed.createComponent(TermContainerComponent);
termComponent = fixture.componentInstance;
const term: PlannedTerm = {
termCode: '1194',
note: undefined,
courses: [],
};
fixture.detectChanges();
});
pnogal
committed
it('should create', () => {
expect(termComponent).toBeTruthy();
});