( code: string, clientId: string, clientSecret: string )
| 17 | }; |
| 18 | const eventNewIntegration = async (event: any) => {}; |
| 19 | const getSlackAccessToken = async ( |
| 20 | code: string, |
| 21 | clientId: string, |
| 22 | clientSecret: string |
| 23 | ) => { |
| 24 | return { |
| 25 | body: { |
| 26 | ok: true, |
| 27 | access_token: v4(), |
| 28 | team: { |
| 29 | id: v4(), |
| 30 | }, |
| 31 | bot_user_id: v4(), |
| 32 | scope: v4(), |
| 33 | authed_user: { |
| 34 | access_token: v4(), |
| 35 | scope: v4(), |
| 36 | id: v4(), |
| 37 | }, |
| 38 | }, |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | describe('newSlackIntegration', () => { |
| 43 | const store = { |
no outgoing calls
no test coverage detected