Skip to content

Commit ae39a79

Browse files
Fix the sample tests (#187)
1 parent 64c7f29 commit ae39a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vision/samples/system-test/detect.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ test(`should detect similar web images in a local file`, async t => {
200200
const output = await tools.runAsync(`${cmd} web ${files[5].localPath}`, cwd);
201201

202202
const [results] = await client.webDetection(files[5].localPath);
203-
const webDetection = results[0].webDetection;
203+
const webDetection = results.webDetection;
204204

205205
if (webDetection.fullMatchingImages.length) {
206206
t.true(output.includes('Full matches found:'));
@@ -230,7 +230,7 @@ test(`should detect similar web images in a remote file`, async t => {
230230
const [results] = await client.webDetection(
231231
`gs://${bucketName}/${files[5].name}`
232232
);
233-
const webDetection = results[0].webDetection;
233+
const webDetection = results.webDetection;
234234

235235
if (webDetection.fullMatchingImages.length) {
236236
t.true(output.includes('Full matches found:'));

0 commit comments

Comments
 (0)