Skip to content

Commit 314081e

Browse files
committed
Other fixes of WhiteSpaces
1 parent 79a09b2 commit 314081e

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

test/methods-test.js

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
22
const assert = require('chai').assert;
33
const init = require('../.').init;
4-
describe('api', function () {
4+
describe('api', function() {
55

6-
describe('account', function () {
7-
it('getminedblocks', function (done) {
6+
describe('account', function() {
7+
it('getminedblocks', function(done) {
88
var api = init();
99
var txlist = api.account.getminedblocks('0x9dd134d14d1e65f84b706d6f205cd5b1cd03a46b');
10-
txlist.then(function (res) {
10+
txlist.then(function(res) {
1111
assert.ok(res);
1212
done();
1313
});
@@ -28,233 +28,233 @@ describe('api', function () {
2828
// done();
2929
// });
3030
// });
31-
it('tokenbalance by address', function (done) {
31+
it('tokenbalance by address', function(done) {
3232
var api = init();
3333
var supply = api.account.tokenbalance('0xe04f27eb70e025b78871a2ad7eabe85e61212761', false, '0x57d90b64a1a57749b0f932f1a3395792e12e7055');
34-
supply.then(function (res) {
34+
supply.then(function(res) {
3535
assert.ok(res);
3636
done();
3737
});
3838
});
39-
it('txlist', function (done) {
39+
it('txlist', function(done) {
4040
var api = init();
4141
var txlist = api.account.txlist('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
42-
txlist.then(function (res) {
42+
txlist.then(function(res) {
4343
assert.ok(res);
4444
done();
4545
});
4646
});
47-
it('txlistinternal by hash', function (done) {
47+
it('txlistinternal by hash', function(done) {
4848
var api = init();
4949
var txlist = api.account.txlistinternal('0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170');
5050
txlist
51-
.then(function (res) {
51+
.then(function(res) {
5252
assert.ok(res);
5353
done();
5454
})
5555
.catch(done);
5656
});
57-
it('txlistinternal by address', function (done) {
57+
it('txlistinternal by address', function(done) {
5858
var api = init();
5959
var txlist = api.account.txlistinternal(null, '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
60-
txlist.then(function (res) {
60+
txlist.then(function(res) {
6161
assert.ok(res);
6262
done();
6363
});
6464
});
65-
it('balance', function (done) {
65+
it('balance', function(done) {
6666
var api = init();
6767
var balance = api.account.balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
68-
balance.then(function (res) {
68+
balance.then(function(res) {
6969
assert.ok(res);
7070
done();
7171
});
7272
});
73-
it('balance multi', function (done) {
73+
it('balance multi', function(done) {
7474
var api = init();
7575
var balance = api.account.balance(['0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae']);
76-
balance.then(function (res) {
76+
balance.then(function(res) {
7777
assert.ok(res);
7878
done();
7979
});
8080
});
8181
});
82-
describe('stats', function () {
83-
it('ethsupply', function (done) {
82+
describe('stats', function() {
83+
it('ethsupply', function(done) {
8484
var api = init();
8585
var supply = api.stats.ethsupply();
86-
supply.then(function (res) {
86+
supply.then(function(res) {
8787
assert.ok(res);
8888
done();
8989
});
9090
});
91-
it('tokensupply by tokenname', function (done) {
91+
it('tokensupply by tokenname', function(done) {
9292
var api = init();
9393
var supply = api.stats.tokensupply('MKR');
94-
supply.then(function (res) {
94+
supply.then(function(res) {
9595
assert.ok(res);
9696
done();
9797
});
9898
});
99-
it('tokensupply by address', function (done) {
99+
it('tokensupply by address', function(done) {
100100
var api = init();
101101
var supply = api.stats.tokensupply(null, '0x57d90b64a1a57749b0f932f1a3395792e12e7055');
102-
supply.then(function (res) {
102+
supply.then(function(res) {
103103
assert.ok(res);
104104
done();
105105
}).catch(done);
106106
});
107-
it('ethprice', function (done) {
107+
it('ethprice', function(done) {
108108
var api = init();
109109
var price = api.stats.ethprice();
110-
price.then(function (res) {
110+
price.then(function(res) {
111111
assert.ok(res);
112112
done();
113113
}).catch(done);
114114
});
115115
});
116-
it('block.getblockreward', function (done) {
116+
it('block.getblockreward', function(done) {
117117
var api = init();
118118
var blockreward = api.block.getblockreward();
119-
blockreward.then(function (res) {
119+
blockreward.then(function(res) {
120120
assert.ok(res);
121121
done();
122122
});
123123
});
124-
it('transaction.getstatus', function (done) {
124+
it('transaction.getstatus', function(done) {
125125
var api = init();
126126
var status = api.transaction.getstatus('0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a');
127-
status.then(function (res) {
127+
status.then(function(res) {
128128
assert.ok(res);
129129
done();
130130
});
131131
});
132-
xit('contract.getabi', function (done) {
132+
xit('contract.getabi', function(done) {
133133
var api = init();
134134
var abi = api.contract.getabi('0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413');
135-
abi.then(function (res) {
135+
abi.then(function(res) {
136136
assert.ok(res);
137137
done();
138138
});
139139
});
140-
describe('proxy', function () {
141-
it('proxy.eth_blockNumber', function (done) {
140+
describe('proxy', function() {
141+
it('proxy.eth_blockNumber', function(done) {
142142
var api = init();
143143
var res = api.proxy.eth_blockNumber();
144-
res.then(function (res) {
144+
res.then(function(res) {
145145
assert.ok(res);
146146
done();
147147
});
148148
});
149-
it('proxy.eth_getBlockByNumber', function (done) {
149+
it('proxy.eth_getBlockByNumber', function(done) {
150150
var api = init();
151151
var res = api.proxy.eth_getBlockByNumber('0x10d4f');
152-
res.then(function (res) {
152+
res.then(function(res) {
153153
assert.ok(res);
154154
done();
155155
});
156156
});
157-
it('proxy.eth_getUncleByBlockNumberAndIndex', function (done) {
157+
it('proxy.eth_getUncleByBlockNumberAndIndex', function(done) {
158158
var api = init();
159159
var res = api.proxy.eth_getUncleByBlockNumberAndIndex('0x210A9B', '0x0');
160-
res.then(function (res) {
160+
res.then(function(res) {
161161
assert.ok(res);
162162
done();
163163
});
164164
});
165-
it('proxy.eth_getBlockTransactionCountByNumber', function (done) {
165+
it('proxy.eth_getBlockTransactionCountByNumber', function(done) {
166166
var api = init();
167167
var res = api.proxy.eth_getBlockTransactionCountByNumber('0x10FB78');
168-
res.then(function (res) {
168+
res.then(function(res) {
169169
assert.ok(res);
170170
done();
171171
});
172172
});
173-
it('proxy.eth_getTransactionByHash', function (done) {
173+
it('proxy.eth_getTransactionByHash', function(done) {
174174
var api = init();
175175
var res = api.proxy.eth_getTransactionByHash('0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1');
176-
res.then(function (res) {
176+
res.then(function(res) {
177177
assert.ok(res);
178178
done();
179179
});
180180
});
181-
it('proxy.eth_getTransactionByBlockNumberAndIndex', function (done) {
181+
it('proxy.eth_getTransactionByBlockNumberAndIndex', function(done) {
182182
var api = init();
183183
var res = api.proxy.eth_getTransactionByBlockNumberAndIndex('0x10d4f', '0x0');
184-
res.then(function (res) {
184+
res.then(function(res) {
185185
assert.ok(res);
186186
done();
187187
});
188188
});
189-
it('proxy.eth_getTransactionCount', function (done) {
189+
it('proxy.eth_getTransactionCount', function(done) {
190190
var api = init();
191191
var res = api.proxy.eth_getTransactionCount('0x2910543af39aba0cd09dbb2d50200b3e800a63d2');
192-
res.then(function (res) {
192+
res.then(function(res) {
193193
assert.ok(res);
194194
done();
195195
});
196196
});
197-
xit('proxy.eth_sendRawTransaction', function (done) {
197+
xit('proxy.eth_sendRawTransaction', function(done) {
198198
var api = init();
199199
var res = api.proxy.eth_sendRawTransaction('0xf904808000831cfde080');
200-
res.then(function (res) {
200+
res.then(function(res) {
201201
assert.ok(res);
202202
done();
203203
});
204204
});
205-
it('proxy.eth_getTransactionReceipt', function (done) {
205+
it('proxy.eth_getTransactionReceipt', function(done) {
206206
var api = init();
207207
var res = api.proxy.eth_getTransactionReceipt('0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1');
208-
res.then(function (res) {
208+
res.then(function(res) {
209209
assert.ok(res);
210210
done();
211211
});
212212
});
213-
it('proxy.eth_call', function (done) {
213+
it('proxy.eth_call', function(done) {
214214
var api = init();
215215
var res = api.proxy.eth_call(
216216
'0xAEEF46DB4855E25702F8237E8f403FddcaF931C0',
217217
'0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724',
218218
'latest'
219219
);
220-
res.then(function (res) {
220+
res.then(function(res) {
221221
assert.ok(res);
222222
done();
223223
});
224224
});
225-
it('proxy.eth_getCode', function (done) {
225+
it('proxy.eth_getCode', function(done) {
226226
var api = init();
227227
var res = api.proxy.eth_getCode('0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c', 'latest');
228-
res.then(function (res) {
228+
res.then(function(res) {
229229
assert.ok(res);
230230
done();
231231
});
232232
});
233-
it('proxy.eth_getStorageAt', function (done) {
233+
it('proxy.eth_getStorageAt', function(done) {
234234
var api = init();
235235
var res = api.proxy.eth_getStorageAt('0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd', '0x0', 'latest');
236-
res.then(function (res) {
236+
res.then(function(res) {
237237
assert.ok(res);
238238
done();
239239
});
240240
});
241-
it('proxy.eth_gasPrice', function (done) {
241+
it('proxy.eth_gasPrice', function(done) {
242242
var api = init();
243243
var res = api.proxy.eth_gasPrice();
244-
res.then(function (res) {
244+
res.then(function(res) {
245245
assert.ok(res);
246246
done();
247247
});
248248
});
249-
xit('proxy.eth_estimateGas', function (done) {
249+
xit('proxy.eth_estimateGas', function(done) {
250250
var api = init();
251251
var res = api.proxy.eth_estimateGas(
252252
'0xf0160428a8552ac9bb7e050d90eeade4ddd52843',
253253
'0xff22',
254254
'0x051da038cc',
255255
'0xffffff'
256256
);
257-
res.then(function (res) {
257+
res.then(function(res) {
258258
assert.ok(res);
259259
done();
260260
});

0 commit comments

Comments
 (0)