File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,15 +152,13 @@ describe('API Integration Tests', () => {
152152 // Re-require app or mock config if necessary, but here we try setting env
153153 // Note: This test might require the app to be re-initialized if config is static
154154 // For this specific codebase, let's see if we can trigger it.
155-
155+
156156 // Since we can't easily re-initialize 'app' without side effects in this test file,
157157 // we'll focus on verifying the HSTS header which is always active now.
158158 // To fully test redirection, we'd ideally have a way to inject config.
159-
160- const response = await request ( app )
161- . get ( '/api/health' )
162- . set ( 'x-forwarded-proto' , 'http' ) ;
163-
159+
160+ const response = await request ( app ) . get ( '/api/health' ) . set ( 'x-forwarded-proto' , 'http' ) ;
161+
164162 // In development (default), it should NOT redirect
165163 expect ( response . status ) . toBe ( 200 ) ;
166164 } ) ;
Original file line number Diff line number Diff line change @@ -184,7 +184,9 @@ export function maskSecret(key: string): string {
184184 * Returns a safe (redacted) version of the config for logging.
185185 * Strips adminSecretKey entirely.
186186 */
187- export function getSafeConfig ( config : OracleServiceConfig ) : Omit < OracleServiceConfig , 'adminSecretKey' > & { adminSecretKey : string } {
187+ export function getSafeConfig (
188+ config : OracleServiceConfig
189+ ) : Omit < OracleServiceConfig , 'adminSecretKey' > & { adminSecretKey : string } {
188190 return {
189191 ...config ,
190192 adminSecretKey : maskSecret ( config . adminSecretKey ) ,
You can’t perform that action at this time.
0 commit comments