/** * Tests for network detection helpers */ describe('NetworkConfig helpers', () => { it('should use hasNetwork before getNetworkConfig', () => { const fs = require('fs'); const path = require('path'); const swapCalculatorPath = path.join( __dirname, '../../src/SwapCalculator.ts', ); const content = fs.readFileSync(swapCalculatorPath, 'utf-8'); expect(content).toContain('hasNetwork'); expect(content).toContain('getNetworkConfig'); }); });