mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
fix key tests
This commit is contained in:
@@ -79,14 +79,14 @@ describe('Key methods', function() {
|
|||||||
db.deleteAll(['key1', 'key2'], function(err) {
|
db.deleteAll(['key1', 'key2'], function(err) {
|
||||||
assert.equal(err, null);
|
assert.equal(err, null);
|
||||||
assert.equal(arguments.length, 1);
|
assert.equal(arguments.length, 1);
|
||||||
async.parallel([
|
async.parallel({
|
||||||
key1exists: function(next) {
|
key1exists: function(next) {
|
||||||
db.exists('key1', next);
|
db.exists('key1', next);
|
||||||
},
|
},
|
||||||
key2exists: function(next) {
|
key2exists: function(next) {
|
||||||
db.exists('key2', next);
|
db.exists('key2', next);
|
||||||
}
|
}
|
||||||
], function(err, results) {
|
}, function(err, results) {
|
||||||
assert.equal(err, null);
|
assert.equal(err, null);
|
||||||
assert.equal(results.key1exists, false);
|
assert.equal(results.key1exists, false);
|
||||||
assert.equal(results.key2exists, false);
|
assert.equal(results.key2exists, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user