import { NO_ERRORS_SCHEMA } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 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'; import { DegreePlannerViewComponent } from './degree-planner-view.component'; import { HttpClientModule } from '@angular/common/http'; import { MAT_DIALOG_DATA } from '@angular/material'; describe('DegreePlannerViewComponent', () => { let component: DegreePlannerViewComponent; let fixture: ComponentFixture<DegreePlannerViewComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule, HttpClientModule, CoreModule, SharedModule, BrowserAnimationsModule, ], declarations: [DegreePlannerViewComponent], providers: [{ provide: MAT_DIALOG_DATA }], schemas: [NO_ERRORS_SCHEMA], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(DegreePlannerViewComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });