Skip to content
Snippets Groups Projects
degree-planner.component.spec.ts 1.3 KiB
Newer Older
jvanboxtel@wisc.edu's avatar
jvanboxtel@wisc.edu committed
import { SidenavService } from './../core/service/sidenav.service';
Joe Van Boxtel's avatar
Joe Van Boxtel committed
import { NO_ERRORS_SCHEMA } from '@angular/core';
jvanboxtel@wisc.edu's avatar
jvanboxtel@wisc.edu committed
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
Joe Van Boxtel's avatar
Joe Van Boxtel committed
import { RouterTestingModule } from '@angular/router/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { SharedModule } from '@app/shared/shared.module';
import { CoreModule } from '@app/core/core.module';
jvanboxtel@wisc.edu's avatar
jvanboxtel@wisc.edu committed

import { DegreePlannerComponent } from './degree-planner.component';
import { HttpClientModule } from '@angular/common/http';
import { MAT_DIALOG_DATA } from '@angular/material';
jvanboxtel@wisc.edu's avatar
jvanboxtel@wisc.edu committed

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

	beforeEach(async(() => {
		TestBed.configureTestingModule({
			imports: [RouterTestingModule, HttpClientModule, CoreModule, SharedModule, BrowserAnimationsModule],
Joe Van Boxtel's avatar
Joe Van Boxtel committed
			declarations: [DegreePlannerComponent],
pnogal's avatar
pnogal committed
			providers: [SidenavService, { provide: MAT_DIALOG_DATA }],
Joe Van Boxtel's avatar
Joe Van Boxtel committed
			schemas: [NO_ERRORS_SCHEMA]
jvanboxtel@wisc.edu's avatar
jvanboxtel@wisc.edu committed
		}).compileComponents();
	}));

	beforeEach(() => {
		fixture = TestBed.createComponent(DegreePlannerComponent);
		component = fixture.componentInstance;
		fixture.detectChanges();
	});

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