Skip to content

Commit

Permalink
Updated CI config and run synth (#181)
Browse files Browse the repository at this point in the history
* Re-generate library using /synth.py

* fix(test): v1 now supports object localization, use v1p1beta1 for tests that assert the method doesnt exist

* npm run prettier
  • Loading branch information
dpebot authored and JustinBeckwith committed Sep 4, 2018
1 parent a0ab1c5 commit 64c7f29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vision/samples/system-test/detect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ test(`should detect similar web images in a local file`, async t => {
t.true(output.includes('Description: Google Cloud Platform'));
}

if (webDetection.bestGuessLabels.length) {
if (webDetection.bestGuessLabels.length) {
t.true(output.includes('Best guess labels found'));
t.true(output.includes('Label:'));
}
Expand All @@ -227,7 +227,9 @@ test(`should detect similar web images in a remote file`, async t => {
cwd
);

const [results] = await client.webDetection(`gs://${bucketName}/${files[5].name}`);
const [results] = await client.webDetection(
`gs://${bucketName}/${files[5].name}`
);
const webDetection = results[0].webDetection;

if (webDetection.fullMatchingImages.length) {
Expand All @@ -243,7 +245,7 @@ test(`should detect similar web images in a remote file`, async t => {
t.true(output.includes('Description: Google Cloud Platform'));
}

if (webDetection.bestGuessLabels.length) {
if (webDetection.bestGuessLabels.length) {
t.true(output.includes('Best guess labels found'));
t.true(output.includes('Label:'));
}
Expand Down

0 comments on commit 64c7f29

Please sign in to comment.