File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
modules/sdk-coin-xrp/test/unit Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ describe('XRP:', function () {
2323 let basecoin ;
2424 let token ;
2525
26+ afterEach ( function ( ) {
27+ sinon . restore ( ) ;
28+ } ) ;
29+
2630 before ( function ( ) {
2731 XrpToken . createTokenConstructors ( ) . forEach ( ( { name, coinConstructor } ) => {
2832 bitgo . safeRegister ( name , coinConstructor ) ;
@@ -83,6 +87,18 @@ describe('XRP:', function () {
8387 makeArgs ( 'r2udSsspYjWSoUZxzxLzV6RxGcbygngJ8?dt=4294967295' , 'rDgocL7QpZh8ZhrPsax4zVqbGGxeAsiBoh' ) ,
8488 ] ;
8589
90+ sinon . stub ( basecoin . bitgo , 'post' ) . returns ( {
91+ send : sinon . stub ( ) . resolves ( {
92+ body : {
93+ result : {
94+ account_data : {
95+ Flags : 0 , // Mock Flags value
96+ } ,
97+ } ,
98+ } ,
99+ } ) ,
100+ } ) ;
101+
86102 for ( const nonThrowingArg of nonThrowingArgs ) {
87103 await basecoin . verifyAddress ( nonThrowingArg ) ;
88104 }
You can’t perform that action at this time.
0 commit comments