(overrides: Partial<Connection> = {})
| 24 | } from "./oauth-reconnect"; |
| 25 | |
| 26 | const connection = (overrides: Partial<Connection> = {}): Connection => ({ |
| 27 | owner: "user", |
| 28 | name: ConnectionName.make("personal-github"), |
| 29 | integration: IntegrationSlug.make("github"), |
| 30 | template: AuthTemplateSlug.make("oauth"), |
| 31 | provider: ProviderKey.make("default"), |
| 32 | address: ConnectionAddress.make("tools.github.user.personal-github"), |
| 33 | identityLabel: "Personal GitHub", |
| 34 | expiresAt: 123, |
| 35 | oauthClient: OAuthClientSlug.make("github-app"), |
| 36 | ...overrides, |
| 37 | }); |
| 38 | |
| 39 | describe("reconnectMode (OAuth vs non-OAuth branch)", () => { |
| 40 | // The single field `oauthClient` decides the path: OAuth connections must |
no outgoing calls
no test coverage detected