import { TestBed } from '@angular/core/testing' ; import { catchError } from 'rxjs/operators' ; import { GeolocationService } from '../services/geolocation.service' ; describe ( 'Geolocation token' , ( ) => { let service ; beforeEach ( ( ) => { TestBed . configureTestingModule ( { providers : [ GeolocationService ] , } ) ; service = TestBed . get ( GeolocationService ) . pipe ( catchError ( ( _err , caught ) => caught ) ) ; } ) ; it ( 'defined' , ( ) => { expect ( service ) . toBeDefined ( ) ; } ) ; } ) ;