import axios from 'axios' ; import type { AxiosInstance } from 'axios' ; import { ArcgisProvider } from '../../../src/provider' ; describe ( 'ArcgisProvider (unit)' , ( ) => { let client ; let provider ; beforeEach ( ( ) => { client = axios . create ( ) ; provider = new ArcgisProvider ( client ) ; } ) ; describe ( '#constructor' , ( ) => { it ( 'should be instance of ArcgisProvider' , async ( ) => { return provider . should . be . instanceOf ( ArcgisProvider ) ; } ) ; } ) ; describe ( '#geocode' , ( ) => { it ( 'should be instance of Function' , async ( ) => { return provider . geocode . should . be . instanceOf ( Function ) ; } ) ; } ) ; describe ( '#reverse' , ( ) => { it ( 'should be instance of Function' , async ( ) => { return provider . reverse . should . be . instanceOf ( Function ) ; } ) ; } ) ; describe ( '#placeDetails' , ( ) => { it ( 'should be instance of Function' , async ( ) => { return provider . placeDetails . should . be . instanceOf ( Function ) ; } ) ; } ) ; } ) ;