Commit eee8fed6 authored by Training's avatar Training
Browse files

CourseFiles task 22 fixed

parent 7a27b0ce
......@@ -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(``);
});
});
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