| /******************************************************************************** |
| * Copyright © 2018 Mettenmeier GmbH. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ********************************************************************************/ |
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
| import { RouterTestingModule } from '@angular/router/testing'; |
| |
| import { OverviewComponent } from '@masterdata/components/overview/overview.component'; |
| import { SharedModule } from '@shared/shared.module'; |
| import { Routes } from '@angular/router'; |
| import { AlertComponent } from '@shared/components/alert/alert.component'; |
| |
| describe('OverviewComponent', () => { |
| let component: OverviewComponent; |
| let fixture: ComponentFixture<OverviewComponent>; |
| |
| beforeEach(async(() => { |
| const routes: Routes = [ |
| { |
| path: '**', |
| component: AlertComponent |
| } |
| ]; |
| TestBed.configureTestingModule({ |
| declarations: [OverviewComponent], |
| imports: [ |
| SharedModule, |
| RouterTestingModule.withRoutes(routes) |
| ] |
| }) |
| .compileComponents(); |
| })); |
| |
| beforeEach(() => { |
| fixture = TestBed.createComponent(OverviewComponent); |
| component = fixture.componentInstance; |
| fixture.detectChanges(); |
| }); |
| |
| it('should create', () => { |
| expect(component).toBeTruthy(); |
| }); |
| }); |