Skip to content

Commit

Permalink
Fix the sample tests (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Sep 8, 2018
1 parent 64c7f29 commit ae39a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vision/samples/system-test/detect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:'));
Expand Down Expand Up @@ -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:'));
Expand Down

0 comments on commit ae39a79

Please sign in to comment.