@ -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;
@ -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));