Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Gottschalk
bmdl-expert-modeler
Commits
3da8afb9
Commit
3da8afb9
authored
Jul 31, 2020
by
Alexander Philipp Nowosad
Browse files
Add BusinessModelViewComponent test
parent
d33c5c3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/business-model-view/business-model-view.component.spec.ts
View file @
3da8afb9
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
();
});
});
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment