Skip to content

Commit

Permalink
plugin-dialogflow: fix tests (#2893)
Browse files Browse the repository at this point in the history
## Description

Add message_id and bot_interaction_id to pass tests
  • Loading branch information
Iru89 committed Aug 26, 2024
1 parent c2465b0 commit 586553c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/botonic-plugin-dialogflow/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ it('Pre response is rejected when using fake credentials', async () => {
}

const request: PluginPreRequest = {
input: { data: 'hi', payload: 'payload', type: INPUT.AUDIO },
input: {
data: 'hi',
payload: 'payload',
type: INPUT.AUDIO,
message_id: 'testMessageId',
bot_interaction_id: 'testBotInteractionId',
},
session: {
bot: { id: 'test' },
// @ts-ignore
Expand Down

0 comments on commit 586553c

Please sign in to comment.