Skip to content

Commit 5e3ee70

Browse files
speech: add operation test
1 parent 86755a7 commit 5e3ee70

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/speech/system-test/speech.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,16 @@ describe('Speech', function() {
215215
.on('complete', assertSimplifiedResponseOperation(done));
216216
});
217217
});
218+
219+
it('runs operation as a promise', function() {
220+
var uri = AUDIO_FILES.bridge.httpUri;
221+
222+
return speech.startRecognition(uri, OPTIONS)
223+
.then(function(response) {
224+
var operation = response[0];
225+
return operation.promise();
226+
});
227+
});
218228
});
219229

220230
describe('createRecognizeStream', function() {

0 commit comments

Comments
 (0)