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 2
2
const assert = require ( 'chai' ) . assert ;
3
3
const init = require ( '../.' ) . init ;
4
4
describe ( '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' ) ;
7
7
var balance = api . account . balance ( '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' ) ;
8
8
assert . ok ( balance . then ) ;
9
9
} ) ;
10
10
it ( 'executes the promise' , function ( done ) {
11
11
var api = init ( 'YourApiKeyToken' , 'ropsten' ) ;
12
12
var balance = api . account . balance ( '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' ) ;
13
- balance . then ( function ( ) {
13
+ balance . then ( function ( ) {
14
14
done ( ) ;
15
15
} ) ;
16
16
} ) ;
17
17
it ( 'has data' , function ( done ) {
18
18
var api = init ( 'YourApiKeyToken' , 'ropsten' ) ;
19
19
var balance = api . account . balance ( '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' ) ;
20
- balance . then ( function ( res ) {
20
+ balance . then ( function ( res ) {
21
21
assert . ok ( res ) ;
22
22
done ( ) ;
23
23
} ) ;
You can’t perform that action at this time.
0 commit comments