import { TestBed } from '@angular/core/testing' ; import { ChatService } from './chat.service' ; import { LoggerService } from '../logger/logger.service' ; import { LoggerServiceMock } from '../logger/logger.service.mock' ; import { RemoteUsersService } from '../remote-users/remote-users.service' ; import { RemoteUsersServiceMock } from '../remote-users/remote-users.service.mock' ; import { NotificationService } from '../notifications/notification.service' ; import { NotificationServiceMock } from '../notifications/notification.service.mock' ; import { OpenViduWebrtcService } from '../openvidu-webrtc/openvidu-webrtc.service' ; import { OpenViduWebrtcServiceMock } from '../openvidu-webrtc/openvidu-webrtc.service.mock' ; import { LocalUsersService } from '../local-users/local-users.service' ; import { LocalUsersServiceMock } from '../local-users/local-users.service.mock' ; describe ( 'ChatService' , ( ) => { let service ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { providers : [ { provide : LoggerService , useClass : LoggerServiceMock } , { provide : RemoteUsersService , useClass : RemoteUsersServiceMock } , { provide : OpenViduWebrtcService , useClass : OpenViduWebrtcServiceMock } , { provide : LocalUsersService , useClass : LocalUsersServiceMock } , { provide : NotificationService , useClass : NotificationServiceMock } ] } ) ; service = TestBed . inject ( ChatService ) ; } ) ; it ( 'should be created' , ( ) => { expect ( service ) . toBeTruthy ( ) ; } ) ; } ) ;