mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 18:26:15 +01:00
added before to hash test
This commit is contained in:
@@ -10,9 +10,17 @@ describe('Hash methods', function() {
|
|||||||
age: 99
|
age: 99
|
||||||
};
|
};
|
||||||
|
|
||||||
|
before(function(done) {
|
||||||
|
db.setObject('testObject1', testData, function(err) {
|
||||||
|
assert.equal(err, null);
|
||||||
|
assert.equal(arguments.length, 1);
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
describe('setObject()', function() {
|
describe('setObject()', function() {
|
||||||
it('should create a object', function(done) {
|
it('should create a object', function(done) {
|
||||||
db.setObject('testObject1', testData, function(err) {
|
db.setObject('testObject2', testData, function(err) {
|
||||||
assert.equal(err, null);
|
assert.equal(err, null);
|
||||||
assert.equal(arguments.length, 1);
|
assert.equal(arguments.length, 1);
|
||||||
done();
|
done();
|
||||||
|
|||||||
Reference in New Issue
Block a user