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 and Ace Nassri committed Nov 17, 2022
1 parent 34ef674 commit df78ec4
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 df78ec4

Please sign in to comment.