(
params: Partial<GroupIntegration> = {}
)
| 1 | import type {GroupIntegration} from 'sentry/types/integrations'; |
| 2 | |
| 3 | export function GitHubIntegrationFixture( |
| 4 | params: Partial<GroupIntegration> = {} |
| 5 | ): GroupIntegration { |
| 6 | return { |
| 7 | domainName: 'github.com/test-integration', |
| 8 | icon: 'http://example.com/integration_icon.png', |
| 9 | id: '1', |
| 10 | name: 'Test Integration', |
| 11 | provider: { |
| 12 | name: 'GitHub', |
| 13 | key: 'github', |
| 14 | canAdd: true, |
| 15 | features: [], |
| 16 | aspects: { |
| 17 | alerts: [ |
| 18 | { |
| 19 | variant: 'warning', |
| 20 | text: 'This is a an alert example', |
| 21 | }, |
| 22 | ], |
| 23 | }, |
| 24 | canDisable: false, |
| 25 | slug: '', |
| 26 | }, |
| 27 | externalIssues: [], |
| 28 | accountType: '', |
| 29 | gracePeriodEnd: '', |
| 30 | organizationIntegrationStatus: 'active', |
| 31 | status: 'active', |
| 32 | ...params, |
| 33 | }; |
| 34 | } |
no outgoing calls
no test coverage detected