mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
more tests
This commit is contained in:
@@ -81,6 +81,10 @@
|
||||
|
||||
var db = require('../../src/database');
|
||||
|
||||
after(function (done) {
|
||||
db.close(done);
|
||||
});
|
||||
|
||||
before(function (done) {
|
||||
this.timeout(30000);
|
||||
var meta;
|
||||
@@ -91,6 +95,9 @@
|
||||
function (next) {
|
||||
db.emptydb(next);
|
||||
},
|
||||
function (next) {
|
||||
db.createIndices(next);
|
||||
},
|
||||
function (next) {
|
||||
winston.info('test_database flushed');
|
||||
meta = require('../../src/meta');
|
||||
|
||||
Reference in New Issue
Block a user