Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Intershop Training
Courses
ICM-400 Intershop PWA
coursefiles
400
Commits
eee8fed6
Commit
eee8fed6
authored
Dec 17, 2020
by
Training
Browse files
CourseFiles task 22 fixed
parent
7a27b0ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Task22/warehouses-page.component.spec.ts
View file @
eee8fed6
...
...
@@ -9,6 +9,8 @@ import { instance, mock, when } from 'ts-mockito';
import
{
coreReducers
}
from
'
ish-core/store/core/core-store.module
'
;
import
{
ngrxTesting
}
from
'
ish-core/utils/dev/ngrx-testing
'
;
import
{
ContentIncludeComponent
}
from
'
ish-shared/cms/components/content-include/content-include.component
'
;
import
{
ErrorMessageComponent
}
from
'
ish-shared/components/common/error-message/error-message.component
'
;
import
{
LoadingComponent
}
from
'
ish-shared/components/common/loading/loading.component
'
;
import
{
WarehousesFacade
}
from
'
../../facades/warehouses.facade
'
;
import
{
Warehouse
}
from
'
../../models/warehouse/warehouse.model
'
;
...
...
@@ -25,7 +27,12 @@ describe('Warehouses Page Component', () => {
beforeEach
(
async
(()
=>
{
warehousesFacadeMock
=
mock
(
WarehousesFacade
);
TestBed
.
configureTestingModule
({
declarations
:
[
MockComponent
(
ContentIncludeComponent
),
WarehousesPageComponent
],
declarations
:
[
MockComponent
(
ContentIncludeComponent
),
MockComponent
(
ErrorMessageComponent
),
MockComponent
(
LoadingComponent
),
WarehousesPageComponent
,
],
imports
:
[
RouterTestingModule
,
TranslateModule
.
forRoot
(),
...
...
@@ -55,12 +62,7 @@ describe('Warehouses Page Component', () => {
});
it
(
'
should render warehouse page include when rendered
'
,
()
=>
{
fixture
.
detectChanges
();
expect
(
element
).
toMatchInlineSnapshot
(
`
<ish-content-include
includeid="pwa.include.training.pagelet2-Include"
ng-reflect-include-id="pwa.include.training.pagelet2-"
></ish-content-include>
<ul></ul>
`
);
expect
(
element
).
toMatchInlineSnapshot
(
``
);
});
});
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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