File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22const assert = require ( 'chai' ) . assert ;
33const init = require ( '../.' ) . init ;
44describe ( 'testnet balance' , function ( ) {
5- it ( 'returns a promise' , function ( ) {
6- var api = init ( 'YourApiKeyToken' , 'ropsten' ) ;
5+ it ( 'returns a promise' , function ( ) {
6+ var api = init ( 'YourApiKeyToken' , 'ropsten' ) ;
77 var balance = api . account . balance ( '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' ) ;
88 assert . ok ( balance . then ) ;
99 } ) ;
1010 it ( 'executes the promise' , function ( done ) {
1111 var api = init ( 'YourApiKeyToken' , 'ropsten' ) ;
1212 var balance = api . account . balance ( '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' ) ;
13- balance . then ( function ( ) {
13+ balance . then ( function ( ) {
1414 done ( ) ;
1515 } ) ;
1616 } ) ;
1717 it ( 'has data' , function ( done ) {
1818 var api = init ( 'YourApiKeyToken' , 'ropsten' ) ;
1919 var balance = api . account . balance ( '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' ) ;
20- balance . then ( function ( res ) {
20+ balance . then ( function ( res ) {
2121 assert . ok ( res ) ;
2222 done ( ) ;
2323 } ) ;
You can’t perform that action at this time.
0 commit comments