From ae39a79f3ec224836a7b54dc9fe1842afb4bc808 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 7 Sep 2018 17:22:15 -0700 Subject: [PATCH] Fix the sample tests (#187) --- vision/samples/system-test/detect.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vision/samples/system-test/detect.test.js b/vision/samples/system-test/detect.test.js index 412bbca9eb..f1e9d67e7c 100644 --- a/vision/samples/system-test/detect.test.js +++ b/vision/samples/system-test/detect.test.js @@ -200,7 +200,7 @@ test(`should detect similar web images in a local file`, async t => { const output = await tools.runAsync(`${cmd} web ${files[5].localPath}`, cwd); const [results] = await client.webDetection(files[5].localPath); - const webDetection = results[0].webDetection; + const webDetection = results.webDetection; if (webDetection.fullMatchingImages.length) { t.true(output.includes('Full matches found:')); @@ -230,7 +230,7 @@ test(`should detect similar web images in a remote file`, async t => { const [results] = await client.webDetection( `gs://${bucketName}/${files[5].name}` ); - const webDetection = results[0].webDetection; + const webDetection = results.webDetection; if (webDetection.fullMatchingImages.length) { t.true(output.includes('Full matches found:'));