add onlyKey opts to storage #getFirst
This commit is contained in:
parent
8765b02883
commit
e109550d9b
4 changed files with 15 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue