diff --git a/vision/samples/resources/google.png b/vision/samples/resources/google.png new file mode 100644 index 0000000000..333bda9371 Binary files /dev/null and b/vision/samples/resources/google.png differ diff --git a/vision/samples/system-test/detect.test.js b/vision/samples/system-test/detect.test.js index e30367f4f5..8b55752168 100644 --- a/vision/samples/system-test/detect.test.js +++ b/vision/samples/system-test/detect.test.js @@ -39,6 +39,7 @@ const files = [ `city.jpg`, 'pdf-ocr.pdf', 'duck_and_truck.jpg', + 'google.png', ].map(name => { return { name, @@ -114,17 +115,17 @@ describe(`detect`, () => { }); it(`should detect logos in a local file`, async () => { - const output = await exec(`${cmd} logos ${files[2].localPath}`); + const output = await exec(`${cmd} logos ${files[9].localPath}`); assert.match(output, /Logos:/); - assert.match(output, /Google/); + assert.match(output, /google/); }); it(`should detect logos in a remote file`, async () => { const output = await exec( - `${cmd} logos-gcs ${bucketName} ${files[2].name}` + `${cmd} logos-gcs ${bucketName} ${files[9].name}` ); assert.match(output, /Logos:/); - assert.match(output, /Google/); + assert.match(output, /google/); }); it(`should detect properties in a local file`, async () => {