Skip to content

Commit

Permalink
unit test cases fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iAmmar7 committed Apr 4, 2023
1 parent 900bc10 commit 624e697
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions internal/e2e-realtime-api/src/voice.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const handler = () => {
// TODO: update this once the backend can send us
// the actual result
tap.equal(
// @ts-expect-error
resultDetector.detect.params.event,
'finished',
'Detect digit is finished'
Expand Down
12 changes: 5 additions & 7 deletions packages/realtime-api/src/voice/CallPrompt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@ describe('CallPrompt', () => {
instance = createCallPromptObject({
store: configureJestStore(),
emitter: new EventEmitter<CallPromptEventsHandlerMapping>(),
payload: {
call_id: 'call_id',
node_id: 'node_id',
control_id: 'control_id',
},
})
// @ts-expect-error
instance.execute = jest.fn()
})

it('should control an active playback', async () => {
// @ts-expect-error
instance.callId = 'call_id'
// @ts-expect-error
instance.nodeId = 'node_id'
// @ts-expect-error
instance.controlId = 'control_id'

const baseExecuteParams = {
method: '',
params: {
Expand Down

0 comments on commit 624e697

Please sign in to comment.