import Voice from '../lib/Voice';

import NexmoStub from './NexmoStub';

var voiceAPIs = [
  'sendTTSMessage',
  'sendTTSPromptWithCapture',
  'sendTTSPromptWithConfirm',
  'call'  
];

describe('Voice Object', function () {
  
  it('should implement all v1 APIs', function() {
    NexmoStub.checkAllFunctionsAreDefined(voiceAPIs, Voice);
  });

  it('should proxy the function call to the underlying `nexmo` object', function() {
    NexmoStub.checkAllFunctionsAreCalled(voiceAPIs, Voice);
  });
  
});

@@ -86,11 +86,29 @@
 s = 
-%5B
+%7B
 %0A 
+ 'sendTTSMessage':
  'se
@@ -119,24 +119,52 @@
 SMessage',%0A 
+ 'sendTTSPromptWithCapture':
  'sendTTSPro
@@ -177,24 +177,52 @@
 hCapture',%0A 
+ 'sendTTSPromptWithConfirm':
  'sendTTSPro
@@ -239,16 +239,24 @@
 firm',%0A 
+ 'call':
  'call' 
@@ -261,9 +261,9 @@
 '  %0A
-%5D
+%7D
 ;%0A%0Ad

Update Voice tests with mappings