Skip to content

Commit d9db94d

Browse files
committed
fix(system-test): make some text matching case insensitive
1 parent cadfd78 commit d9db94d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vision/system-test/detect.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ describe('detect', () => {
7676
it('should detect labels in a local file', async () => {
7777
const output = execSync(`${cmd} labels ${files[4].localPath}`);
7878
assert.match(output, /Labels:/);
79-
assert.match(output, /cat/);
79+
assert.match(output.toLowerCase(), /cat/);
8080
});
8181

8282
it('should detect labels in a remote file', async () => {
8383
const output = execSync(`${cmd} labels-gcs ${bucketName} ${files[4].name}`);
8484
assert.match(output, /Labels:/);
85-
assert.match(output, /cat/);
85+
assert.match(output.toLowerCase(), /cat/);
8686
});
8787

8888
it('should detect landmarks in a local file', async () => {

vision/system-test/quickstart.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ describe('quickstart', () => {
2424
it('should detect labels in a remote file', async () => {
2525
const stdout = execSync('node quickstart.js');
2626
assert.match(stdout, /Labels:/);
27-
assert.match(stdout, /cat/);
27+
assert.match(stdout.toLowerCase(), /cat/);
2828
});
2929
});

0 commit comments

Comments
 (0)