From a446d3775e3af989d7a934866b2825f691e08fca Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sat, 27 Sep 2014 16:49:53 -0300 Subject: [PATCH] refactor readWallet --- test/Storage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Storage.js b/test/Storage.js index 781bb591c..17a63287f 100644 --- a/test/Storage.js +++ b/test/Storage.js @@ -343,8 +343,8 @@ describe('Storage model', function() { }); }); - describe('#readWallet', function() { - it('should read wallet', function(done) { + describe('#getFirst', function() { + it('should read first key', function(done) { var data = { 'wallet::id1_wallet1': { a: 'x', @@ -358,7 +358,7 @@ describe('Storage model', function() { sinon.stub(s, '_read', function(k, cb) { return cb(data[k]); }); - s.readWallet('id1', function(err, w) { + s.getFirst('wallet::id1', function(err, w) { should.not.exist(err); w.should.exist; w.hasOwnProperty('a').should.be.true;