aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/search
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/search')
-rw-r--r--server/tests/api/search/search-index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts
index 40065d162..849a8a893 100644
--- a/server/tests/api/search/search-index.ts
+++ b/server/tests/api/search/search-index.ts
@@ -105,7 +105,7 @@ describe('Test videos search', function () {
105 describe('Videos search', async function () { 105 describe('Videos search', async function () {
106 106
107 it('Should make a simple search and not have results', async function () { 107 it('Should make a simple search and not have results', async function () {
108 const res = await searchVideo(server.url, 'a'.repeat(500)) 108 const res = await searchVideo(server.url, 'djidane'.repeat(50))
109 109
110 expect(res.body.total).to.equal(0) 110 expect(res.body.total).to.equal(0)
111 expect(res.body.data).to.have.lengthOf(0) 111 expect(res.body.data).to.have.lengthOf(0)
@@ -216,7 +216,7 @@ describe('Test videos search', function () {
216 { 216 {
217 await updateCustomSubConfig(server.url, server.accessToken, { instance: { defaultNSFWPolicy: 'display' } }) 217 await updateCustomSubConfig(server.url, server.accessToken, { instance: { defaultNSFWPolicy: 'display' } })
218 218
219 const res = await searchVideo(server.url, 'NSFW search index') 219 const res = await searchVideo(server.url, 'NSFW search index', '-match')
220 const video = res.body.data[0] as Video 220 const video = res.body.data[0] as Video
221 221
222 expect(res.body.data).to.have.length.greaterThan(0) 222 expect(res.body.data).to.have.length.greaterThan(0)
@@ -228,7 +228,7 @@ describe('Test videos search', function () {
228 { 228 {
229 await updateCustomSubConfig(server.url, server.accessToken, { instance: { defaultNSFWPolicy: 'do_not_list' } }) 229 await updateCustomSubConfig(server.url, server.accessToken, { instance: { defaultNSFWPolicy: 'do_not_list' } })
230 230
231 const res = await searchVideo(server.url, 'NSFW search index') 231 const res = await searchVideo(server.url, 'NSFW search index', '-match')
232 232
233 try { 233 try {
234 expect(res.body.data).to.have.lengthOf(0) 234 expect(res.body.data).to.have.lengthOf(0)