update to @jambonz/verb-specifications

This commit is contained in:
Dave Horton
2023-02-15 09:28:01 -05:00
parent 2c09650c24
commit 553b3e5c88
4 changed files with 145 additions and 394 deletions

View File

@@ -10,7 +10,9 @@ test('unit tests', (t) => {
let app = new WebhookResponse();
app.sip_decline(fetchData(require('./data/good/sip-decline')));
t.pass('sip_decline: passes');
let json = app.toJSON();
// verify that the verb is sip:decline not sip_decline (special case for verbs with colons)
t.ok(json[0].verb === 'sip:decline', 'sip_decline: passes');
app.say(fetchData(require('./data/good/say')));
t.pass('say: passes');
app.say(fetchData(require('./data/good/say-text-array')));