Skip to content

Node.js based forum software built for the modern web

added before to hash test

barisusakli1f674f10e2f5
diff --git a/tests/database/hash.js b/tests/database/hash.js
index 1478f401a1..d35666bf53 100644
--- a/tests/database/hash.js
+++ b/tests/database/hash.js
@@ -10,9 +10,17 @@ describe('Hash methods', function() {
age: 99
};
+ before(function(done) {
+ db.setObject('testObject1', testData, function(err) {
+ assert.equal(err, null);
+ assert.equal(arguments.length, 1);
+ done();
+ });
+ })
+
describe('setObject()', function() {
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(arguments.length, 1);
done();