/**
 * Copyright 2017 - 2019  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 { TestBed , inject } from '@angular/core/testing' ; import { DataTableService } from './data-table.service' ; import { ResourceService } from './resource.service' ; import { ResourceServiceMock } from './mocks/resource.service.mock' ; import { ConstraintService } from './constraint.service' ; import { ConstraintServiceMock } from './mocks/constraint.service.mock' ; import { VariableService } from './variable.service' ; import { VariableServiceMock } from './mocks/variable.service.mock' ; import { AppConfig } from '../config/app.config' ; import { AppConfigMock } from '../config/app.config.mock' ; describe ( 'DataTableService' , ( ) => { beforeEach ( ( ) => { TestBed . configureTestingModule ( { providers : [ { provide : ResourceService , useClass : ResourceServiceMock } , { provide : ConstraintService , useClass : ConstraintServiceMock } , { provide : VariableService , useClass : VariableServiceMock } , { provide : AppConfig , useClass : AppConfigMock } , DataTableService ] } ) ; } ) ; it ( 'should be injected' , inject ( [ DataTableService ] , ( service ) => { expect ( service ) . toBeTruthy ( ) ; } ) ) ; } ) ;