Skip to content

Commit

Permalink
fix: use regex to test output (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus authored and JustinBeckwith committed Aug 27, 2018
1 parent 0661905 commit cd6c084
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions speech/system-test/betaFeatures.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ test(`should run word Level Confience on a local file`, async t => {
const output = await runAsync(
`${cmd} wordLevelConfidence -f ${BrooklynFilePath}`
);
t.true(
output.includes(`Transcription: how old is the Brooklyn Bridge`) &&
output.includes(`Confidence: \d\.\d`)
);
t.true(output.includes(`Transcription: how old is the Brooklyn Bridge`));
t.true(/Confidence: \d\.\d/.test(output));
});

test(`should run word level confidence on a GCS bucket`, async t => {
Expand Down

0 comments on commit cd6c084

Please sign in to comment.