UNPKG

@yoroi/api

Version:
17 lines (13 loc) 406 B
import {fetcher} from '@yoroi/common' import {appApiMaker} from './app-api-maker' describe('appApiMaker', () => { it('success', async () => { const appApi = appApiMaker({baseUrl: 'https://localhost'}) expect(appApi).toBeDefined() const appApiWithFetcher = appApiMaker({ baseUrl: 'https://localhost', request: fetcher, }) expect(appApiWithFetcher).toBeDefined() }) })