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 Ace Nassri committed Nov 17, 2022
1 parent 4a8eea6 commit 95ba812
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 95ba812

Please sign in to comment.