add onlyKey opts to storage #getFirst

This commit is contained in:
Matias Alejo Garcia 2014-10-20 10:00:10 -03:00
commit e109550d9b
4 changed files with 15 additions and 7 deletions

View file

@ -347,7 +347,7 @@ describe('Storage model', function() {
sinon.stub(s, '_read', function(k, cb) {
return cb(data[k]);
});
s.getFirst('wallet::id1', function(err, w) {
s.getFirst('wallet::id1', {}, function(err, w) {
should.not.exist(err);
w.should.exist;
w.hasOwnProperty('a').should.be.true;