From 4b7bcc115f61b9077fecb3ef8a61f4ac6fa280ac Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Fri, 17 Feb 2023 00:30:24 -0600 Subject: [PATCH] feat: add integration test for canConnect method --- integrationTests/Ping/canConnect.spec.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 integrationTests/Ping/canConnect.spec.ts diff --git a/integrationTests/Ping/canConnect.spec.ts b/integrationTests/Ping/canConnect.spec.ts new file mode 100644 index 0000000..6d746f5 --- /dev/null +++ b/integrationTests/Ping/canConnect.spec.ts @@ -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; + }); +});