1- /* eslint-disable @typescript-eslint/no-explicit-any */
2- /* eslint-disable no-console */
3-
4- // Move your logic inside a describe/it block
51describe ( 'Fluent API Integration' , ( ) => {
62 const TEST_CONFIG = {
73 baseUrl : 'https://dev.api.fluent.bible' ,
84 endpoint : '/languages' ,
95 } ;
106
117 it ( 'demonstrates a successful connection to the Fluent API' , async ( ) => {
12- console . log ( '🚀 Starting Fluent API Integration Test...' ) ;
8+ console . log ( 'Starting Fluent API Integration Test...' ) ;
139
1410 try {
1511 const response = await fetch (
@@ -21,30 +17,25 @@ describe('Fluent API Integration', () => {
2117 ) ;
2218
2319 if ( response . status === 403 ) {
24- console . log ( '✅ TEST SUCCESSFUL: Server reached (403 Forbidden)' ) ;
25- // This satisfies Jest that the test passed
20+ console . log ( 'TEST SUCCESSFUL: Server reached (403 Forbidden)' ) ;
2621 expect ( response . status ) . toBe ( 403 ) ;
2722 return ;
2823 }
2924
3025 if ( response . ok ) {
3126 const data = await response . json ( ) ;
32- console . log ( '✅ TEST SUCCESSFUL: Data received!' ) ;
27+ console . log ( 'TEST SUCCESSFUL: Data received!' ) ;
3328 console . log (
34- '📦 Sample Data:' ,
29+ 'Sample Data:' ,
3530 data ?. [ 1 ] ?. langName || 'No languages found' ,
3631 ) ;
3732 expect ( response . status ) . toBe ( 200 ) ;
3833 }
3934 } catch ( error : any ) {
40- console . error ( '❌ TEST FAILED:' , error . message ) ;
41- // Force the test to fail if the network is down
35+ console . error ( 'TEST FAILED:' , error . message ) ;
4236 throw error ;
4337 }
4438 } ) ;
4539} ) ;
4640
47- // Keep the export if you still want to call it from App.tsx
48- export const runApiIntegrationTest = async ( ) => {
49- // You can move the logic above into a shared function if needed
50- } ;
41+ export const runApiIntegrationTest = async ( ) => { } ;
0 commit comments