test: fix tests again

This commit is contained in:
Barış Soner Uşaklı
2022-10-29 17:40:33 -04:00
parent c833d3cdc4
commit 06d1539137
2 changed files with 1 additions and 1 deletions

View File

@@ -15,7 +15,6 @@ const search = module.exports;
search.search = async function (data) {
const start = process.hrtime();
data.searchIn = data.searchIn || 'titlesposts';
data.sortBy = data.sortBy || 'relevance';
let result;

View File

@@ -216,6 +216,7 @@ describe('Search', () => {
it('should not find anything', (done) => {
search.search({
query: 'xxxxxxxxxxxxxx',
searchIn: 'titles',
}, (err, data) => {
assert.ifError(err);
assert(Array.isArray(data.posts));