Comparing version 1.0.0 to 1.0.1
@@ -12,2 +12,3 @@ | ||
getAccountAddress: 'getaccountaddress', | ||
getAddressesByAccount: 'getaddressesbyaccount', | ||
getBalance: 'getbalance', | ||
@@ -14,0 +15,0 @@ getBlockCount: 'getblockcount', |
{ | ||
"name": "bitcoin", | ||
"description": "Communicate with bitcoind via JSON-RPC", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "./lib/bitcoin", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ var path = require('path'); | ||
var test = { | ||
address: "1GbDSt8XieCHQmkQsZmMirwHoUHJukjwXn" | ||
account: "test" | ||
} | ||
@@ -31,19 +31,26 @@ | ||
topic: makeClient, | ||
'an account': { | ||
'an account address': { | ||
topic: function(client){ | ||
client.getAccount(test.address, this.callback); | ||
client.getAccountAddress(test.account, this.callback); | ||
}, | ||
'is valid': function(account){ | ||
assert.ok(account, "Update test variables with a valid address?"); | ||
'is valid': function(address){ | ||
assert.ok(address, "Update test variables with a valid address?"); | ||
}, | ||
'after getting the account\'s address again': { | ||
topic: function(account, client) { | ||
client.getAccountAddress(account, this.callback); | ||
'after getting the account name again': { | ||
topic: function(address, client) { | ||
client.getAccount(address, this.callback); | ||
}, | ||
'should be the same as the original': | ||
function(address) { | ||
assert.equal(address, test.address); | ||
'should be the same as the original': function(account) { | ||
assert.equal(account, test.account); | ||
} | ||
} | ||
}, | ||
'account addresses': { | ||
topic: function(client){ | ||
client.getAddressesByAccount(test.account, this.callback); | ||
}, | ||
'is not empty': function(addresses) { | ||
assert.isTrue(addresses && addresses.length > 0); | ||
} | ||
}, | ||
'getDifficulty': { | ||
@@ -50,0 +57,0 @@ topic: function(client) { client.getDifficulty(this.callback); }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14371
377