@@ -97,7 +97,7 @@ describe('WarpGatewayInteractionsLoader -> load', () => {
97
97
it ( 'should be called with correct params' , async ( ) => {
98
98
const loader = getLoader ( ) ;
99
99
await loader . load ( contractId , fromBlockHeight , toBlockHeight ) ;
100
- expect ( fetchMock ) . toBeCalledWith ( `${ baseUrl } &fromSdk=true` ) ;
100
+ expect ( fetchMock ) . toBeCalledWith ( `${ baseUrl } &fromSdk=true` , undefined ) ;
101
101
} ) ;
102
102
it ( 'should be called accordingly to the amount of pages' , async ( ) => {
103
103
const fetchMock = jest . spyOn ( global , 'fetch' ) . mockImplementation (
@@ -110,7 +110,7 @@ describe('WarpGatewayInteractionsLoader -> load', () => {
110
110
) ;
111
111
const loader = getLoader ( ) ;
112
112
await loader . load ( contractId , fromBlockHeight , toBlockHeight ) ;
113
- expect ( fetchMock ) . toBeCalledWith ( `${ baseUrl } &fromSdk=true` ) ;
113
+ expect ( fetchMock ) . toBeCalledWith ( `${ baseUrl } &fromSdk=true` , undefined ) ;
114
114
/*expect(fetchMock).toBeCalledWith(`${baseUrl}&page=2&fromSdk=true`);
115
115
expect(fetchMock).toBeCalledWith(`${baseUrl}&page=3&fromSdk=true`);
116
116
expect(fetchMock).toBeCalledWith(`${baseUrl}&page=4&fromSdk=true`);
@@ -120,12 +120,12 @@ describe('WarpGatewayInteractionsLoader -> load', () => {
120
120
it ( 'should be called with confirmationStatus set to "confirmed"' , async ( ) => {
121
121
const loader = getLoader ( { confirmed : true } ) ;
122
122
await loader . load ( contractId , fromBlockHeight , toBlockHeight ) ;
123
- expect ( fetchMock ) . toBeCalledWith ( `${ baseUrl } &fromSdk=true&confirmationStatus=confirmed` ) ;
123
+ expect ( fetchMock ) . toBeCalledWith ( `${ baseUrl } &fromSdk=true&confirmationStatus=confirmed` , undefined ) ;
124
124
} ) ;
125
125
it ( 'should be called with confirmationStatus set to "not_corrupted"' , async ( ) => {
126
126
const loader = getLoader ( { notCorrupted : true } ) ;
127
127
await loader . load ( contractId , fromBlockHeight , toBlockHeight ) ;
128
- expect ( fetchMock ) . toBeCalledWith ( `${ baseUrl } &fromSdk=true&confirmationStatus=not_corrupted` ) ;
128
+ expect ( fetchMock ) . toBeCalledWith ( `${ baseUrl } &fromSdk=true&confirmationStatus=not_corrupted` , undefined ) ;
129
129
} ) ;
130
130
it ( 'should throw an error in case of timeout' , async ( ) => {
131
131
jest . spyOn ( global , 'fetch' ) . mockImplementation ( ( ) => Promise . reject ( { status : 504 , ok : false } ) ) ;
0 commit comments