@@ -68,7 +68,7 @@ describe('EclairService', () => {
68
68
} ) ;
69
69
70
70
it ( 'should get a list of channels for v0.7.0' , async ( ) => {
71
- node . version = '0.7.0' ;
71
+ const node7 = { ... node , version : '0.7.0' } ;
72
72
const chanResponse : ELN . ChannelResponse = {
73
73
nodeId : 'abcdef' ,
74
74
channelId : '65sdfd7' ,
@@ -117,12 +117,12 @@ describe('EclairService', () => {
117
117
} ;
118
118
eclairApiMock . httpPost . mockResolvedValue ( [ chanResponse ] ) ;
119
119
const expected = [ expect . objectContaining ( { pubkey : 'abcdef' } ) ] ;
120
- const actual = await eclairService . getChannels ( node ) ;
120
+ const actual = await eclairService . getChannels ( node7 ) ;
121
121
expect ( actual ) . toEqual ( expected ) ;
122
122
} ) ;
123
123
124
124
it ( 'should get a list of channels for v0.8.0' , async ( ) => {
125
- node . version = '0.8.0' ;
125
+ const node8 = { ... node , version : '0.8.0' } ;
126
126
const chanResponse : ELN . ChannelResponse = {
127
127
nodeId : 'abcdef' ,
128
128
channelId : '65sdfd7' ,
@@ -171,12 +171,12 @@ describe('EclairService', () => {
171
171
} ;
172
172
eclairApiMock . httpPost . mockResolvedValue ( [ chanResponse ] ) ;
173
173
const expected = [ expect . objectContaining ( { pubkey : 'abcdef' } ) ] ;
174
- const actual = await eclairService . getChannels ( node ) ;
174
+ const actual = await eclairService . getChannels ( node8 ) ;
175
175
expect ( actual ) . toEqual ( expected ) ;
176
176
} ) ;
177
177
178
178
it ( 'should get a list of channels for >= v0.9.0' , async ( ) => {
179
- node . version = '0.9.0' ;
179
+ const node9 = { ... node , version : '0.9.0' } ;
180
180
const chanResponse : ELN . ChannelResponse = {
181
181
nodeId : 'abcdef' ,
182
182
channelId : '65sdfd7' ,
@@ -225,7 +225,7 @@ describe('EclairService', () => {
225
225
} ;
226
226
eclairApiMock . httpPost . mockResolvedValue ( [ chanResponse ] ) ;
227
227
const expected = [ expect . objectContaining ( { pubkey : 'abcdef' } ) ] ;
228
- const actual = await eclairService . getChannels ( node ) ;
228
+ const actual = await eclairService . getChannels ( node9 ) ;
229
229
expect ( actual ) . toEqual ( expected ) ;
230
230
} ) ;
231
231
@@ -313,7 +313,12 @@ describe('EclairService', () => {
313
313
version : defaultRepoState . images . eclair . latest ,
314
314
} ,
315
315
'open' ,
316
- { channelFlags : 0 , fundingSatoshis : 100000 , nodeId : 'abc' } ,
316
+ {
317
+ channelFlags : 0 ,
318
+ fundingSatoshis : 100000 ,
319
+ fundingFeeBudgetSatoshis : 50000 ,
320
+ nodeId : 'abc' ,
321
+ } ,
317
322
) ;
318
323
} ) ;
319
324
0 commit comments