Skip to content

Commit

Permalink
Remove some unnecessary body parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane DeWael committed May 24, 2019
1 parent fa1ab33 commit 34e13b6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ describe('getTypeAndConversation()', () => {
event: {
type: 'app_home_opened',
channel: conversationId,
event_ts: 'EVENT_TS',
},
};

Expand Down Expand Up @@ -101,25 +100,19 @@ function createFakeActions(conversationId: string): any[] {
{
type: 'message_action',
channel: { id: conversationId },
callback_id: 'CALLBACK_ID',
},
// Body for a dialog submission
{
type: 'dialog_submission',
channel: { id: conversationId },
callback_id: 'CALLBACK_ID',
submission: { KEY: 'VALUE' },
},
// Body for an action within an interactive message
{
type: 'interactive_message',
channel: { id: conversationId },
callback_id: 'CALLBACK_ID',
actions: [
{
type: 'button',
name: 'NAME',
value: 'VALUE',
},
],
},
Expand All @@ -130,13 +123,6 @@ function createFakeActions(conversationId: string): any[] {
actions: [
{
type: 'static_select',
selected_option: {
text: {
type: 'plain_text',
text: 'ELEMENT_TEXT',
},
value: 'VALUE',
},
},
],
},
Expand All @@ -161,7 +147,6 @@ function createFakeOptions(conversationId: string): any[] {
{
type: 'block_suggestion',
channel: { id: conversationId },
action_id: 'ACTION_ID',
},
];
}

0 comments on commit 34e13b6

Please sign in to comment.