Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albho committed Oct 31, 2023
1 parent e9b030f commit f4393c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions binding/react/test/use_leopard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('Leopard binding', () => {
});

for (const testInfo of testData.tests.parameters) {
it.only(`should be able to process audio (${testInfo.language})`, () => {
it(`should be able to process audio (${testInfo.language})`, () => {
const { result } = renderHook(() => useLeopard());

cy.wrapHook(() =>
Expand All @@ -108,9 +108,9 @@ describe('Leopard binding', () => {
cy.getFramesFromFile(`audio_samples/${testInfo.audio_file}`).then(
async (pcm: Int16Array) => {
cy.wrapHook(() => result.current.process(pcm)).then(() => {
const transcript = result.current.transcript?.transcript;
const transcript = result.current.result?.transcript;
expect(transcript).to.be.eq(testInfo.transcript);
result.current.transcript?.words.forEach(
result.current.result?.words.forEach(
({ word, startSec, endSec, confidence }) => {
const wordRegex = new RegExp(`${word}`, 'i');
expect(transcript).to.match(wordRegex);
Expand Down

0 comments on commit f4393c8

Please sign in to comment.