mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 09:20:32 +01:00
search tests
new method emptydb use emptydb instead of flushdb, flushdb removes indices for mongo which breaks search tests initialize meta.config properly in tests enable nodebb-plugin-dbsearch for tests
This commit is contained in:
@@ -18,7 +18,7 @@ describe('Post\'s', function () {
|
||||
var cid;
|
||||
|
||||
before(function (done) {
|
||||
async.parallel({
|
||||
async.series({
|
||||
voterUid: function (next) {
|
||||
user.create({username: 'upvoter'}, next);
|
||||
},
|
||||
@@ -206,6 +206,6 @@ describe('Post\'s', function () {
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
db.flushdb(done);
|
||||
db.emptydb(done);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user