We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86755a7 commit 5e3ee70Copy full SHA for 5e3ee70
1 file changed
packages/speech/system-test/speech.js
@@ -215,6 +215,16 @@ describe('Speech', function() {
215
.on('complete', assertSimplifiedResponseOperation(done));
216
});
217
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
228
229
230
describe('createRecognizeStream', function() {
0 commit comments