describe('Search target', function () {
it('Should fail/succeed depending on the search target', async function () {
- this.timeout(10000)
-
const query = { search: 'coucou' }
const paths = [
'/api/v1/search/video-playlists/',
await updateSearchIndex(server, true, true)
- {
- const customQuery = { ...query, searchTarget: 'local' }
- await makeGetRequest({ url: server.url, path, query: customQuery, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
- }
-
{
const customQuery = { ...query, searchTarget: 'search-index' }
await makeGetRequest({ url: server.url, path, query: customQuery, expectedStatus: HttpStatusCode.OK_200 })