diff --git a/test/__snapshots__/model.test.ts.snap b/test/__snapshots__/model.test.ts.snap index 35decf8..2008ee4 100644 --- a/test/__snapshots__/model.test.ts.snap +++ b/test/__snapshots__/model.test.ts.snap @@ -1,11 +1,3 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`model should work 1`] = ` -[ - { - "from": 0, - "text": " And so, my fellow Americans, ask not what your country can do for you, ask what you can do for your country.", - "to": 10560, - }, -] -`; +exports[`model should work 1`] = `" And so, my fellow Americans, ask not what your country can do for you, ask what you can do for your country."`; diff --git a/test/model.test.ts b/test/model.test.ts index 6caf333..3068cbb 100644 --- a/test/model.test.ts +++ b/test/model.test.ts @@ -30,7 +30,7 @@ it( const { result } = await whisper.transcribe(pcm); const results = await result; - expect(results).toMatchSnapshot(); + expect(results[0].text).toMatchSnapshot(); await whisper.free(); },