@@ -2,7 +2,9 @@ import { CookieSessionStorage } from './CookieSessionStorage.js';
22import type { AuthKitConfig } from '../config/types.js' ;
33
44// Mock config
5- const createMockConfig = ( overrides : Partial < AuthKitConfig > = { } ) : AuthKitConfig => ( {
5+ const createMockConfig = (
6+ overrides : Partial < AuthKitConfig > = { } ,
7+ ) : AuthKitConfig => ( {
68 clientId : 'test-client-id' ,
79 apiKey : 'test-api-key' ,
810 redirectUri : 'https://example.com/callback' ,
@@ -53,14 +55,18 @@ describe('CookieSessionStorage', () => {
5355 } ) ;
5456
5557 it ( 'infers secure=false from http redirectUri' , ( ) => {
56- const config = createMockConfig ( { redirectUri : 'http://localhost:3000/callback' } ) ;
58+ const config = createMockConfig ( {
59+ redirectUri : 'http://localhost:3000/callback' ,
60+ } ) ;
5761 const storage = new TestCookieSessionStorage ( config ) ;
5862
5963 expect ( storage [ 'cookieOptions' ] . secure ) . toBe ( false ) ;
6064 } ) ;
6165
6266 it ( 'infers secure=true from https redirectUri' , ( ) => {
63- const config = createMockConfig ( { redirectUri : 'https://example.com/callback' } ) ;
67+ const config = createMockConfig ( {
68+ redirectUri : 'https://example.com/callback' ,
69+ } ) ;
6470 const storage = new TestCookieSessionStorage ( config ) ;
6571
6672 expect ( storage [ 'cookieOptions' ] . secure ) . toBe ( true ) ;
0 commit comments