fix more tests

v1.18.x
barisusakli 10 years ago
parent b6639403fe
commit 410d9fa4fa

@ -91,7 +91,9 @@ module.exports = function(db, module) {
if (!Array.isArray(keys) || !keys.length) {
return callback();
}
db.collection('objects').remove({_key: {$in: keys}}, callback);
db.collection('objects').remove({_key: {$in: keys}}, function(err, res) {
callback(err);
});
};
module.get = function(key, callback) {

@ -39,7 +39,7 @@ describe('Key methods', function() {
db.get('testKey', function(err, value) {
assert.equal(err, null, 'db.get error');
assert.equal(value, false, 'db.get deleted key is not falsy');
assert.equal(false, !!value, 'db.get deleted key is not falsy');
done();
});
});

Loading…
Cancel
Save