@@ -44,6 +44,8 @@ describe('relayerClient', () => {
4444 const data = '0x123' ;
4545
4646 ( global . fetch as jest . Mock ) . mockResolvedValue ( {
47+ ok : true ,
48+ text : ( ) => Promise . resolve ( JSON . stringify ( { result : transactionHash } ) ) ,
4749 json : ( ) => ( {
4850 result : transactionHash ,
4951 } ) ,
@@ -82,6 +84,8 @@ describe('relayerClient', () => {
8284 } ;
8385
8486 ( global . fetch as jest . Mock ) . mockResolvedValue ( {
87+ ok : true ,
88+ text : ( ) => Promise . resolve ( JSON . stringify ( { result : relayerTransaction } ) ) ,
8589 json : ( ) => ( {
8690 result : relayerTransaction ,
8791 } ) ,
@@ -118,6 +122,8 @@ describe('relayerClient', () => {
118122 } ] ;
119123
120124 ( global . fetch as jest . Mock ) . mockResolvedValue ( {
125+ ok : true ,
126+ text : ( ) => Promise . resolve ( JSON . stringify ( { result : feeOptions } ) ) ,
121127 json : ( ) => ( {
122128 result : feeOptions ,
123129 } ) ,
@@ -152,6 +158,8 @@ describe('relayerClient', () => {
152158 const relayerSignature = '0x123' ;
153159
154160 ( global . fetch as jest . Mock ) . mockResolvedValue ( {
161+ ok : true ,
162+ text : ( ) => Promise . resolve ( JSON . stringify ( { result : relayerSignature } ) ) ,
155163 json : ( ) => ( {
156164 result : relayerSignature ,
157165 } ) ,
@@ -186,6 +194,8 @@ describe('relayerClient', () => {
186194 const relayerSignature = '0x123' ;
187195
188196 ( global . fetch as jest . Mock ) . mockResolvedValue ( {
197+ ok : true ,
198+ text : ( ) => Promise . resolve ( JSON . stringify ( { result : relayerSignature } ) ) ,
189199 json : ( ) => ( {
190200 result : relayerSignature ,
191201 } ) ,
0 commit comments