@@ -11,7 +11,12 @@ describe('TradingNetwork', function () {
1111 const signature = 'signature' ;
1212 let mockBitGo : any ;
1313 let mockWallet : any ;
14- let requestCalls : Array < { method : string ; url : string ; headers : Record < string , string > ; body : unknown } > ;
14+ let requestCalls : Array < {
15+ method : string ;
16+ url : string ;
17+ headers : Record < string , string > ;
18+ body : unknown ;
19+ } > ;
1520 let tradingNetwork : TradingNetwork ;
1621 let tradingAccount : { signPayload : sinon . SinonStub } ;
1722
@@ -85,13 +90,16 @@ describe('TradingNetwork', function () {
8590 assert . strictEqual ( prepared . signature , signature ) ;
8691 assert . match ( prepared . clientExternalId , / ^ [ 0 - 9 a - f - ] { 36 } $ / ) ;
8792 assert . match ( prepared . nonce , / ^ [ 0 - 9 a - f ] { 64 } $ / ) ;
88- assert . strictEqual ( prepared . payload , JSON . stringify ( {
89- connectionId : 'connection-id' ,
90- amount : { currency : 'tbtc' , quantity : '100' } ,
91- notes : 'test' ,
92- clientExternalId : prepared . clientExternalId ,
93- nonce : prepared . nonce ,
94- } ) ) ;
93+ assert . strictEqual (
94+ prepared . payload ,
95+ JSON . stringify ( {
96+ connectionId : 'connection-id' ,
97+ amount : { currency : 'tbtc' , quantity : '100' } ,
98+ notes : 'test' ,
99+ clientExternalId : prepared . clientExternalId ,
100+ nonce : prepared . nonce ,
101+ } )
102+ ) ;
95103 sinon . assert . calledOnceWithExactly ( tradingAccount . signPayload , {
96104 payload : prepared . payload ,
97105 walletPassphrase : undefined ,
0 commit comments