Skip to content

Commit

Permalink
fix(ts): add missing transcribeData in mock
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Nov 11, 2024
1 parent b0408b0 commit b8cf5d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jest/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ if (!NativeModules.RNWhisper) {
segments: [{ text: ' Test', t0: 0, t1: 33 }],
isAborted: false,
})),
transcribeData: jest.fn(() => Promise.resolve({
result: ' Test',
segments: [{ text: ' Test', t0: 0, t1: 33 }],
isAborted: false,
})),
startRealtimeTranscribe: jest.fn((contextId, jobId) => {
setTimeout(() => {
// Start
Expand Down

0 comments on commit b8cf5d8

Please sign in to comment.