Function
buildSession
(overrides: Partial<any> = {})
Source from the content-addressed store, hash-verified
| 2 | import { hasChromeCommandAccessForSession } from './chromeAvailability.js' |
| 3 | |
| 4 | function buildSession(overrides: Partial<any> = {}) { |
| 5 | return { |
| 6 | headersKind: 'none', |
| 7 | providerPlan: { |
| 8 | mode: 'none', |
| 9 | }, |
| 10 | scopes: [], |
| 11 | subscription: { |
| 12 | subscriptionType: null, |
| 13 | rateLimitTier: null, |
| 14 | }, |
| 15 | ...overrides, |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | describe('/chrome command access', () => { |
| 20 | it('allows oauth-backed Noumena first-party sessions', () => { |
Tested by
no test coverage detected