From b490f03e1cdf10b2cc6958fda618d8bfa1ca0be6 Mon Sep 17 00:00:00 2001 From: freewil Date: Sun, 9 Mar 2014 00:22:58 -0800 Subject: [PATCH] add getBalance() test without any args close GH-11 --- test/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/index.js b/test/index.js index 887f955..cc06400 100644 --- a/test/index.js +++ b/test/index.js @@ -69,6 +69,17 @@ describe('Client', function() { }); }); + describe('getBalance()', function() { + it('should return balance without any args', function(done) { + var client = makeClient(); + client.getBalance(function(err, balance) { + assert.ifError(err); + assert.ok(typeof balance === 'number'); + done(); + }); + }); + }); + describe('getDifficulty()', function() { it('should get difficulty', function(done) { var client = makeClient();