diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:04:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 89d241a79c262b9775c233b73cff080043ebb5e6 (patch) | |
tree | cb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tests/api/search/search-index.ts | |
parent | d23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff) | |
download | PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip |
Shorter server command names
Diffstat (limited to 'server/tests/api/search/search-index.ts')
-rw-r--r-- | server/tests/api/search/search-index.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/search/search-index.ts b/server/tests/api/search/search-index.ts index d5dc40f60..b54c0da22 100644 --- a/server/tests/api/search/search-index.ts +++ b/server/tests/api/search/search-index.ts | |||
@@ -20,9 +20,9 @@ describe('Test videos search', function () { | |||
20 | 20 | ||
21 | await setAccessTokensToServers([ server ]) | 21 | await setAccessTokensToServers([ server ]) |
22 | 22 | ||
23 | await server.videosCommand.upload({ attributes: { name: localVideoName } }) | 23 | await server.videos.upload({ attributes: { name: localVideoName } }) |
24 | 24 | ||
25 | command = server.searchCommand | 25 | command = server.search |
26 | }) | 26 | }) |
27 | 27 | ||
28 | describe('Default search', async function () { | 28 | describe('Default search', async function () { |
@@ -30,7 +30,7 @@ describe('Test videos search', function () { | |||
30 | it('Should make a local videos search by default', async function () { | 30 | it('Should make a local videos search by default', async function () { |
31 | this.timeout(10000) | 31 | this.timeout(10000) |
32 | 32 | ||
33 | await server.configCommand.updateCustomSubConfig({ | 33 | await server.config.updateCustomSubConfig({ |
34 | newConfig: { | 34 | newConfig: { |
35 | search: { | 35 | search: { |
36 | searchIndex: { | 36 | searchIndex: { |
@@ -57,7 +57,7 @@ describe('Test videos search', function () { | |||
57 | }) | 57 | }) |
58 | 58 | ||
59 | it('Should make an index videos search by default', async function () { | 59 | it('Should make an index videos search by default', async function () { |
60 | await server.configCommand.updateCustomSubConfig({ | 60 | await server.config.updateCustomSubConfig({ |
61 | newConfig: { | 61 | newConfig: { |
62 | search: { | 62 | search: { |
63 | searchIndex: { | 63 | searchIndex: { |
@@ -79,7 +79,7 @@ describe('Test videos search', function () { | |||
79 | }) | 79 | }) |
80 | 80 | ||
81 | it('Should make an index videos search if local search is disabled', async function () { | 81 | it('Should make an index videos search if local search is disabled', async function () { |
82 | await server.configCommand.updateCustomSubConfig({ | 82 | await server.config.updateCustomSubConfig({ |
83 | newConfig: { | 83 | newConfig: { |
84 | search: { | 84 | search: { |
85 | searchIndex: { | 85 | searchIndex: { |
@@ -213,7 +213,7 @@ describe('Test videos search', function () { | |||
213 | let nsfwUUID: string | 213 | let nsfwUUID: string |
214 | 214 | ||
215 | { | 215 | { |
216 | await server.configCommand.updateCustomSubConfig({ | 216 | await server.config.updateCustomSubConfig({ |
217 | newConfig: { | 217 | newConfig: { |
218 | instance: { defaultNSFWPolicy: 'display' } | 218 | instance: { defaultNSFWPolicy: 'display' } |
219 | } | 219 | } |
@@ -229,7 +229,7 @@ describe('Test videos search', function () { | |||
229 | } | 229 | } |
230 | 230 | ||
231 | { | 231 | { |
232 | await server.configCommand.updateCustomSubConfig({ | 232 | await server.config.updateCustomSubConfig({ |
233 | newConfig: { | 233 | newConfig: { |
234 | instance: { defaultNSFWPolicy: 'do_not_list' } | 234 | instance: { defaultNSFWPolicy: 'do_not_list' } |
235 | } | 235 | } |