Skip to content

Commit 97f7d1c

Browse files
jmdobryAce Nassri
authored and
Ace Nassri
committed
Update storage samples. (#263)
* Update storage samples. * Update dependencies.
1 parent 187f832 commit 97f7d1c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

speech/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"test": "cd ..; npm run st -- speech/system-test/*.test.js"
99
},
1010
"dependencies": {
11-
"@google-cloud/speech": "^0.4.0",
12-
"node-record-lpcm16": "^0.1.4",
13-
"yargs": "^6.4.0"
11+
"@google-cloud/speech": "0.5.0",
12+
"node-record-lpcm16": "0.1.4",
13+
"yargs": "6.5.0"
1414
},
1515
"engines": {
1616
"node": ">=4.3.2"

speech/system-test/recognize.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ const text = `how old is the Brooklyn Bridge`;
2525

2626
describe(`speech:recognize`, () => {
2727
it(`should run sync recognize`, () => {
28-
assert.equal(run(`${cmd} sync ${filename}`, cwd), `Transcription: ${text}`);
28+
assert.equal(run(`${cmd} sync ${filename}`, cwd).includes(text), true);
2929
});
3030

3131
it(`should run async recognize`, () => {
32-
assert.equal(run(`${cmd} async ${filename}`, cwd), `Transcription: ${text}`);
32+
assert.equal(run(`${cmd} async ${filename}`, cwd).includes(text), true);
3333
});
3434

3535
it(`should run streaming recognize`, () => {

0 commit comments

Comments
 (0)