Skip to content

Commit

Permalink
fix errors in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aoberoi committed Mar 26, 2020
1 parent 572d8e8 commit 9947553
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration-tests/types/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ const app = new App({ token: 'TOKEN', signingSecret: 'Signing Secret' });

// calling action method with incorrect an type constraint value should not work
// $ExpectError
app.action({ type: 'Something wrong' }, ({ action }) => {
return action;
app.action({ type: 'Something wrong' }, async ({ action }) => {
console.log(action);
});

// $ExpectType void
app.action({ type: 'block_actions' }, async ({
action, // $ExpectType BlockElementAction
}) => {
return action;
console.log(action);
});

// $ExpectType void
app.action({ type: 'interactive_message' }, async ({
action, // $ExpectType InteractiveAction
}) => {
return action;
console.log(action);
});

// $ExpectType void
app.action({ type: 'dialog_submission' }, async ({
action, // $ExpectType DialogSubmitAction
}) => {
return action;
console.log(action);
});

0 comments on commit 9947553

Please sign in to comment.