// Test script for FreightwavesService createOrder method const { FreightwavesService } = require('./dist/service/freightwaves.service'); async function testFreightwavesService() { try { // Create an instance of the FreightwavesService const service = new FreightwavesService(); // Call the test method console.log('Starting test for createOrder method...'); const result = await service.testQueryOrder(); console.log('Test completed successfully!'); console.log('Result:', result); console.log('\nTo run the actual createOrder request:'); console.log('1. Uncomment the createOrder call in the testCreateOrder method'); console.log('2. Update the test-secret, test-partner-id with real credentials'); console.log('3. Run this script again'); } catch (error) { console.error('Test failed:', error); } } // Run the test testFreightwavesService();