Skip to content

Commit d88f7d8

Browse files
jkwluiAce Nassri
authored andcommitted
fix(samples): storage import (#166)
1 parent eec136b commit d88f7d8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

speech/system-test/recognize.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
'use strict';
1919

2020
const path = require(`path`);
21-
const storage = require(`@google-cloud/storage`)();
21+
const {Storage} = require(`@google-cloud/storage`);
2222
const test = require(`ava`);
2323
const uuid = require(`uuid`);
2424

2525
const {runAsync} = require(`@google-cloud/nodejs-repo-tools`);
2626

27+
const storage = new Storage();
2728
const bucketName = `nodejs-docs-samples-test-${uuid.v4()}`;
2829
const cmd = `node recognize.js`;
2930
const cwd = path.join(__dirname, `..`);

speech/system-test/recognize.v1p1beta1.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
'use strict';
1919

2020
const path = require(`path`);
21-
const storage = require(`@google-cloud/storage`)();
21+
const {Storage} = require(`@google-cloud/storage`);
2222
const test = require(`ava`);
2323
const uuid = require(`uuid`);
2424

2525
const {runAsync} = require(`@google-cloud/nodejs-repo-tools`);
2626

27+
const storage = new Storage();
2728
const bucketName = `nodejs-docs-samples-test-${uuid.v4()}`;
2829
const cmd = `node recognize.v1p1beta1.js`;
2930
const cwd = path.join(__dirname, `..`);

0 commit comments

Comments
 (0)