Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 1a9c374

Browse files
author
Benjamin E. Coe
authored
fix(samples): upgrade yargs and fix broken CLI config (#436)
1 parent d56d4a7 commit 1a9c374

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

samples/package.json

Lines changed: 2 additions & 2 deletions
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",

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

Lines changed: 5 additions & 3 deletions
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)