diff --git a/packages/google-cloud-vision/package.json b/packages/google-cloud-vision/package.json index 81aa04bf4ac..0edcde940c7 100644 --- a/packages/google-cloud-vision/package.json +++ b/packages/google-cloud-vision/package.json @@ -46,7 +46,7 @@ "protobufjs": "^6.8.6" }, "devDependencies": { - "@google-cloud/storage": "^2.0.0", + "@google-cloud/storage": "^3.0.0", "codecov": "^3.0.2", "eslint": "^6.0.0", "eslint-config-prettier": "^6.0.0", diff --git a/packages/google-cloud-vision/system-test/vision.js b/packages/google-cloud-vision/system-test/vision.js index b4f71b671dd..d4003618f16 100644 --- a/packages/google-cloud-vision/system-test/vision.js +++ b/packages/google-cloud-vision/system-test/vision.js @@ -76,9 +76,8 @@ describe('Vision', function() { it('should detect from a filename', () => { return client.logoDetection(IMAGES.logo).then(responses => { const response = responses[0]; - assert.deepStrictEqual( - response.logoAnnotations[0].description.toLowerCase(), - 'google' + assert.ok( + /google/.test(response.logoAnnotations[0].description.toLowerCase()) ); }); }); @@ -87,9 +86,8 @@ describe('Vision', function() { const buffer = fs.readFileSync(IMAGES.logo); return client.logoDetection(buffer).then(responses => { const response = responses[0]; - assert.deepStrictEqual( - response.logoAnnotations[0].description.toLowerCase(), - 'google' + assert.ok( + /google/.test(response.logoAnnotations[0].description.toLowerCase()) ); }); });