Skip to content

Commit 29031d5

Browse files
authored
fix(samples): upgrade yargs and fix broken CLI config (#436)
1 parent 917c672 commit 29031d5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

vision/samples/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
},
1515
"dependencies": {
1616
"@google-cloud/vision": "^1.2.0",
17+
"canvas": "^2.0.0",
1718
"mathjs": "^6.0.0",
1819
"natural": "^0.6.1",
1920
"redis": "^2.8.0",
20-
"yargs": "^13.0.0",
21-
"canvas": "^2.0.0"
21+
"yargs": "^14.0.0"
2222
},
2323
"devDependencies": {
2424
"@google-cloud/storage": "^2.0.0",

vision/samples/system-test/detect.v1p3beta1.test.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2017, Google, LLC.
2+
* Copyright 2017 Google LLC
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at
@@ -50,13 +50,15 @@ describe(`detect v1 p3 beta1`, () => {
5050
});
5151

5252
it(`should read handwriting in local handwritten.jpg sample`, async () => {
53-
const output = execSync(`${cmd} detectHandwriting ${files[1]}`);
53+
const output = execSync(
54+
`${cmd} detectHandwriting -h ${files[1].localPath}`
55+
);
5456
assert.match(output, /hand written message/);
5557
});
5658

5759
it(`should read handwriting from handwritten.jpg in GCS bucket`, async () => {
5860
const output = execSync(
59-
`${cmd} detectHandwritingGCS gs://${bucketName}/${files[1].name}`
61+
`${cmd} detectHandwritingGCS -u gs://${bucketName}/${files[1].name}`
6062
);
6163
assert.match(output, /hand written message/);
6264
});

0 commit comments

Comments
 (0)