Skip to content

Commit

Permalink
* Refactored Pub/Sub samples into nice command-line programs, like th…
Browse files Browse the repository at this point in the history
…e new Cloud Storage samples (#164)

* Brought Pub/Sub samples code coverage up to 98.66%
  • Loading branch information
jmdobry authored Aug 10, 2016
1 parent 37f5076 commit 3dbb9a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion speech/system-test/recognize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('speech:recognize', function () {
recognizeExample.main(
path.join(__dirname, '../resources/audio.raw'),
function (err, result) {
assert(!err);
assert.ifError(err);
assert(result);
assert(Array.isArray(result.results));
assert(result.results.length === 1);
Expand Down
2 changes: 1 addition & 1 deletion speech/system-test/recognize_streaming.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('speech:recognize_streaming', function () {
path.join(__dirname, '../resources/audio.raw'),
process.env.SPEECH_API_HOST || 'speech.googleapis.com',
function (err, results) {
assert(!err);
assert.ifError(err);
assert(results);
assert(results.length === 3);
assert(results[0].results);
Expand Down

0 comments on commit 3dbb9a9

Please sign in to comment.