From 06d15391371e92fe0059e7c8ed48622f6e639b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 29 Oct 2022 17:40:33 -0400 Subject: [PATCH] test: fix tests again --- src/search.js | 1 - test/search.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.js b/src/search.js index c1463486d2..cbd4e4f40c 100644 --- a/src/search.js +++ b/src/search.js @@ -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; diff --git a/test/search.js b/test/search.js index e86d48bc48..14179ad5cd 100644 --- a/test/search.js +++ b/test/search.js @@ -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));