Skip to content

Commit

Permalink
test: check only transcription text
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Oct 1, 2024
1 parent 0eb35af commit 89645a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions test/__snapshots__/model.test.ts.snap
Original file line number Diff line number Diff line change
@@ -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."`;
2 changes: 1 addition & 1 deletion test/model.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
Expand Down

0 comments on commit 89645a7

Please sign in to comment.