1
- import { ChainId , ChainType , getChainById , supportedChains } from '../types'
1
+ import { ChainId , getChainById , supportedChains } from '../types'
2
2
import ConfigService from './ConfigService'
3
3
4
4
let configService : ConfigService
@@ -13,7 +13,9 @@ describe('ConfigService', () => {
13
13
const defaultConfig = configService . getConfig ( )
14
14
15
15
expect ( defaultConfig . apiUrl ) . toEqual ( 'https://li.quest/v1/' )
16
- expect ( defaultConfig . defaultRouteOptions ) . toEqual ( { } )
16
+ expect ( defaultConfig . defaultRouteOptions ) . toEqual ( {
17
+ integrator : 'lifi-sdk' ,
18
+ } )
17
19
expect ( defaultConfig . rpcs ) . toBeDefined ( )
18
20
expect ( defaultConfig . multicallAddresses ) . toBeDefined ( )
19
21
expect (
@@ -52,6 +54,7 @@ describe('ConfigService', () => {
52
54
const configB = {
53
55
defaultRouteOptions : {
54
56
slippage : 0 ,
57
+ integrator : 'new-integrator' ,
55
58
} ,
56
59
}
57
60
const mergedConfig = configService . updateConfig ( configB )
@@ -62,6 +65,9 @@ describe('ConfigService', () => {
62
65
expect ( mergedConfig . defaultRouteOptions . slippage ) . toEqual (
63
66
configB . defaultRouteOptions . slippage
64
67
)
68
+ expect ( mergedConfig . defaultRouteOptions . integrator ) . toEqual (
69
+ configB . defaultRouteOptions . integrator
70
+ )
65
71
} )
66
72
67
73
it ( 'should merge the default execution settings' , ( ) => {
0 commit comments