(overrides: Record<string, unknown> = {})
| 5 | } from './RemoteCallout.js' |
| 6 | |
| 7 | function makeManagedSession(overrides: Record<string, unknown> = {}) { |
| 8 | return { |
| 9 | principalSource: 'managed_oauth', |
| 10 | sessionState: 'usable', |
| 11 | accessToken: 'managed-token', |
| 12 | scopes: ['user:inference', 'user:profile'], |
| 13 | ...overrides, |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | describe('hasRemoteCalloutSession', () => { |
| 18 | test('accepts usable managed sessions with an access token', () => { |
no outgoing calls
no test coverage detected