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:
barisusakli
2016-10-17 23:34:09 +03:00
parent d106ca9ce3
commit 4a0f67afdc
19 changed files with 221 additions and 20 deletions

View File

@@ -375,6 +375,6 @@ describe('Hash methods', function () {
after(function (done) {
db.flushdb(done);
db.emptydb(done);
});
});

View File

@@ -143,6 +143,6 @@ describe('Key methods', function () {
after(function (done) {
db.flushdb(done);
db.emptydb(done);
});
});

View File

@@ -161,6 +161,6 @@ describe('List methods', function () {
after(function (done) {
db.flushdb(done);
db.emptydb(done);
});
});

View File

@@ -230,6 +230,6 @@ describe('Set methods', function () {
after(function (done) {
db.flushdb(done);
db.emptydb(done);
});
});

View File

@@ -696,6 +696,6 @@ describe('Sorted Set methods', function () {
after(function (done) {
db.flushdb(done);
db.emptydb(done);
});
});