(
overrides: Partial<PlatformIntegration> = {}
)
| 145 | } |
| 146 | |
| 147 | function createPlatformIntegration( |
| 148 | overrides: Partial<PlatformIntegration> = {} |
| 149 | ): PlatformIntegration { |
| 150 | return { |
| 151 | id: 'pi_1', |
| 152 | platform: PLATFORM.LINEAR, |
| 153 | platform_installation_id: 'org-abc', |
| 154 | metadata: null, |
| 155 | ...overrides, |
| 156 | } as PlatformIntegration; |
| 157 | } |
| 158 | |
| 159 | describe('createLinearBotPlatform.getIdentity', () => { |
| 160 | it('extracts organizationId from a LinearCommentRawMessage', async () => { |