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 { 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', () => {
let component: BusinessModelViewComponent;
let fixture: ComponentFixture<BusinessModelViewComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ BusinessModelViewComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(BusinessModelViewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
let spectator: Spectator<BusinessModelViewComponent>;
const createComponent = createRoutingFactory({
component: BusinessModelViewComponent,
declarations: [
MockComponent(CanvasBuildingBlockComponent),
],
imports: [ReactiveFormsModule],
stubsEnabled: false,
});
beforeEach(() => spectator = createComponent());
it('should create', () => {
expect(component).toBeTruthy();
expect(spectator.component).toBeTruthy();
});
});
Supports Markdown
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