From 4a6ad30a54ae3fc2026638218dca43c3c849e1f1 Mon Sep 17 00:00:00 2001 From: ckoegel Date: Wed, 18 Oct 2023 11:10:40 -0400 Subject: [PATCH] remove skipped tests and detectOpenHandles --- package.json | 2 +- tests/integration/calls-api.test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 388b18d..34062ba 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "scripts": { "build": "tsc ", "prepare": "npm run build", - "test": "jest --coverage" + "test": "jest --coverage --detectOpenHandles" }, "dependencies": { "axios": "^0.27.2", diff --git a/tests/integration/calls-api.test.js b/tests/integration/calls-api.test.js index 58d59cf..66ff4ed 100644 --- a/tests/integration/calls-api.test.js +++ b/tests/integration/calls-api.test.js @@ -77,7 +77,7 @@ describe('CallsApi', () => { }); describe('getCall', () => { - test.skip('should return a call', async () => { + test('should return a call', async () => { await sleep(40); // wait 40s for voice API to update call status const { status, data } = await callsApi.getCallState(BW_ACCOUNT_ID, callId); @@ -104,7 +104,7 @@ describe('CallsApi', () => { }); describe('updateCall', () => { - test.skip('should update a call', async () => { + test('should update a call', async () => { const updateCallBody = { state: CallStateEnum.Active, redirectUrl: `${MANTECA_BASE_URL}/bxml/pause` @@ -126,7 +126,7 @@ describe('CallsApi', () => { }); describe('updateCallBxml', () => { - test.skip('should update a call with bxml', async () => { + test('should update a call with bxml', async () => { const updateBxml = 'This is a test bxml response'; const updateCallId = await createMantecaCall(callsApi);