Skip to content

Commit 95ba812

Browse files
stephenplusplusAce Nassri
authored and
Ace Nassri
committed
fix: use regex to test output (#150)
1 parent 4a8eea6 commit 95ba812

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

speech/system-test/betaFeatures.test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,8 @@ test(`should run word Level Confience on a local file`, async t => {
9494
const output = await runAsync(
9595
`${cmd} wordLevelConfidence -f ${BrooklynFilePath}`
9696
);
97-
t.true(
98-
output.includes(`Transcription: how old is the Brooklyn Bridge`) &&
99-
output.includes(`Confidence: \d\.\d`)
100-
);
97+
t.true(output.includes(`Transcription: how old is the Brooklyn Bridge`));
98+
t.true(/Confidence: \d\.\d/.test(output));
10199
});
102100

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

0 commit comments

Comments
 (0)