Skip to content

Commit

Permalink
chore(deps): update dependency @google-cloud/storage to v3 (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmehiphop authored and JustinBeckwith committed Jul 31, 2019
1 parent ba37ff6 commit 1e9f468
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 4 additions & 6 deletions packages/google-cloud-vision/system-test/vision.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
);
});
});
Expand All @@ -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())
);
});
});
Expand Down

0 comments on commit 1e9f468

Please sign in to comment.