Commit 3da8afb9 authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Add BusinessModelViewComponent test

parent d33c5c3f
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BusinessModelViewComponent } from './business-model-view.component'; import { BusinessModelViewComponent } from './business-model-view.component';
import { createRoutingFactory, Spectator } from '@ngneat/spectator';
import { ReactiveFormsModule } from '@angular/forms';
import { MockComponent } from 'ng-mocks';
import { CanvasBuildingBlockComponent } from '../canvas-building-block/canvas-building-block.component';
describe('BusinessModelViewComponent', () => { describe('BusinessModelViewComponent', () => {
let component: BusinessModelViewComponent; let spectator: Spectator<BusinessModelViewComponent>;
let fixture: ComponentFixture<BusinessModelViewComponent>; const createComponent = createRoutingFactory({
component: BusinessModelViewComponent,
beforeEach(async(() => { declarations: [
TestBed.configureTestingModule({ MockComponent(CanvasBuildingBlockComponent),
declarations: [ BusinessModelViewComponent ] ],
}) imports: [ReactiveFormsModule],
.compileComponents(); stubsEnabled: false,
}));
beforeEach(() => {
fixture = TestBed.createComponent(BusinessModelViewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
}); });
beforeEach(() => spectator = createComponent());
it('should create', () => { it('should create', () => {
expect(component).toBeTruthy(); expect(spectator.component).toBeTruthy();
}); });
}); });
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment