Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Nov 9, 2023
1 parent 0f803f9 commit 8db72e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding/react/test/use_leopard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ describe('Leopard binding', () => {
cy.wrapHook(result.current.stopRecording).then(() => {
const transcript = result.current.result?.transcript;
expect(transcript).to.be.eq(testInfo.transcript);
expect(result.current.isRecording).to.be.false;
result.current.result?.words.forEach(
({ word, startSec, endSec, confidence }) => {
const wordRegex = new RegExp(`${word}`, 'i');
expect(transcript).to.match(wordRegex);
expect(startSec).to.be.gt(0);
expect(endSec).to.be.gt(0);
expect(confidence).to.be.gt(0).and.lt(1);
expect(result.current.isRecording).to.be.false;
}
);
});
Expand Down

0 comments on commit 8db72e7

Please sign in to comment.