mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	test: fix tests again
This commit is contained in:
		| @@ -15,7 +15,6 @@ const search = module.exports; | |||||||
|  |  | ||||||
| search.search = async function (data) { | search.search = async function (data) { | ||||||
| 	const start = process.hrtime(); | 	const start = process.hrtime(); | ||||||
| 	data.searchIn = data.searchIn || 'titlesposts'; |  | ||||||
| 	data.sortBy = data.sortBy || 'relevance'; | 	data.sortBy = data.sortBy || 'relevance'; | ||||||
|  |  | ||||||
| 	let result; | 	let result; | ||||||
|   | |||||||
| @@ -216,6 +216,7 @@ describe('Search', () => { | |||||||
| 	it('should not find anything', (done) => { | 	it('should not find anything', (done) => { | ||||||
| 		search.search({ | 		search.search({ | ||||||
| 			query: 'xxxxxxxxxxxxxx', | 			query: 'xxxxxxxxxxxxxx', | ||||||
|  | 			searchIn: 'titles', | ||||||
| 		}, (err, data) => { | 		}, (err, data) => { | ||||||
| 			assert.ifError(err); | 			assert.ifError(err); | ||||||
| 			assert(Array.isArray(data.posts)); | 			assert(Array.isArray(data.posts)); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user