Function
integrationWithMetadata
(metadata: PlatformIntegration['metadata'])
Source from the content-addressed store, hash-verified
| 198 | |
| 199 | describe('createLinearBotPlatform.isEnabledForBot', () => { |
| 200 | function integrationWithMetadata(metadata: PlatformIntegration['metadata']): PlatformIntegration { |
| 201 | return { metadata } as PlatformIntegration; |
| 202 | } |
| 203 | |
| 204 | it('returns true only when metadata.bot_enabled is the boolean true', () => { |
| 205 | expect(linearPlatform.isEnabledForBot(integrationWithMetadata({ bot_enabled: true }))).toBe( |
Tested by
no test coverage detected