/**
 * Copyright 2017 - 2018  The Hyve B.V.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */ import { async , ComponentFixture , TestBed } from '@angular/core/testing' ; import { GbSidePanelComponent } from './gb-side-panel.component' ; import { CommonModule } from '@angular/common' ; import { AccordionModule , AutoCompleteModule , ButtonModule , ConfirmationService , ConfirmDialogModule , DataViewModule , DragDropModule , InputTextModule , OverlayPanelModule , PanelModule , TooltipModule , TreeModule , RadioButtonModule , CheckboxModule , SelectButtonModule } from 'primeng' ; import { FormsModule } from '@angular/forms' ; import { ConstraintService } from '../../services/constraint.service' ; import { ConstraintServiceMock } from '../../services/mocks/constraint.service.mock' ; import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ; import { CohortService } from '../../services/cohort.service' ; import { CohortServiceMock } from '../../services/mocks/cohort.service.mock' ; import { NavbarServiceMock } from '../../services/mocks/navbar.service.mock' ; import { NavbarService } from '../../services/navbar.service' ; import { CrossTableService } from '../../services/cross-table.service' ; import { CrossTableServiceMock } from '../../services/mocks/cross-table.service.mock' ; import { AppConfig } from '../../config/app.config' ; import { AppConfigMock } from '../../config/app.config.mock' ; import { MockComponent } from 'ng2-mock-component' ; import { routing } from '../../app.routing' ; import { GbMainModule } from '../gb-main-module/gb-main.module' ; import { TreeNodeService } from '../../services/tree-node.service' ; import { TreeNodeServiceMock } from '../../services/mocks/tree-node.service.mock' ; import { CountService } from '../../services/count.service' ; import { CountServiceMock } from '../../services/mocks/count.service.mock' ; import { MatExpansionModule } from '@angular/material/expansion' ; describe ( 'GbSidePanelComponent' , ( ) => { let component ; let fixture ; beforeEach ( async ( ( ) => { TestBed . configureTestingModule ( { declarations : [ MockComponent ( { selector : 'gb-tree-nodes' } ) , MockComponent ( { selector : 'gb-cohorts' } ) , MockComponent ( { selector : 'gb-variables' } ) ] , imports : [ BrowserAnimationsModule , CommonModule , AccordionModule , TreeModule , OverlayPanelModule , DataViewModule , DragDropModule , FormsModule , AutoCompleteModule , PanelModule , ButtonModule , InputTextModule , TooltipModule , ConfirmDialogModule , RadioButtonModule , CheckboxModule , MatExpansionModule , SelectButtonModule , GbMainModule , routing ] , providers : [ { provide : AppConfig , useClass : AppConfigMock } , { provide : ConstraintService , useClass : ConstraintServiceMock } , { provide : CohortService , useClass : CohortServiceMock } , { provide : NavbarService , useClass : NavbarServiceMock } , { provide : CrossTableService , useClass : CrossTableServiceMock } , { provide : TreeNodeService , useClass : TreeNodeServiceMock } , { provide : CohortService , useClass : CohortServiceMock } , { provide : CountService , useClass : CountServiceMock } , ConfirmationService ] } ) . compileComponents ( ) ; } ) ) ; beforeEach ( ( ) => { fixture = TestBed . createComponent ( GbSidePanelComponent ) ; component = fixture . componentInstance ; fixture . detectChanges ( ) ; } ) ; it ( 'should be created' , ( ) => { expect ( component ) . toBeTruthy ( ) ; } ) ; } ) ;