diff --git a/test/say-tests.js b/test/say-tests.js index a77fea37..1e2a0775 100644 --- a/test/say-tests.js +++ b/test/say-tests.js @@ -53,7 +53,9 @@ test('\'say\' tests', async(t) => { let obj = await getJSON(`http:127.0.0.1:3100/lastRequest/${from}_callStatus`); console.log(obj); t.ok(obj.body.customerdata.callCount === 10, - 'create-call: call-hook contains correct format for customerData'); + 'create-call: status-hook contains correct format for customerData'); + t.ok(obj.body.customerData.callCount === 10, + 'create-call: status-hook contains correct format for customerData'); disconnect(); } catch (err) { console.log(`error received: ${err}`);