Skip to content

Commit

Permalink
fix: ignore case in system test assertions (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Jan 27, 2019
1 parent 8b4218c commit 0332637
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Binary file added vision/samples/resources/google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions vision/samples/system-test/detect.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const files = [
`city.jpg`,
'pdf-ocr.pdf',
'duck_and_truck.jpg',
'google.png',
].map(name => {
return {
name,
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit 0332637

Please sign in to comment.