feat: add integration test for canConnect method
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
import { OnspringClient } from '../../src/index';
|
||||||
|
import { expect } from 'chai';
|
||||||
|
import { baseURL, apiKey } from '../mochaRootHooks';
|
||||||
|
|
||||||
|
describe('canConnect', function () {
|
||||||
|
it('should be able to connect to the API', async function () {
|
||||||
|
const client = new OnspringClient(baseURL, apiKey);
|
||||||
|
const response = await client.canConnect();
|
||||||
|
expect(response).to.be.true;
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user