UNPKG

@ekoopensource/sdk

Version:

Ekoopensource sdk to connect to the ekoopnsource grids and services

21 lines (17 loc) 476 B
import { EOS } from '../'; const config = require('../config'); const sdk = new EOS({ clientId: 'ojssjs', clientSecret: 's2020202020' }) sdk.setEnviroment("staging"); test('initiation', () => { expect(sdk.init()).toBe('Sdk Initialized....'); }); describe('wrapper', () => { it('should return an api response', async done => { await sdk.fetchData("health", "doctors").then(res => { // console.log(res) done(); }); })