diff options
Diffstat (limited to 'server/tests/api/search/search-playlists.ts')
-rw-r--r-- | server/tests/api/search/search-playlists.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/server/tests/api/search/search-playlists.ts b/server/tests/api/search/search-playlists.ts index 2e4773ed6..e15128c8e 100644 --- a/server/tests/api/search/search-playlists.ts +++ b/server/tests/api/search/search-playlists.ts | |||
@@ -26,40 +26,40 @@ describe('Test playlists search', function () { | |||
26 | await setAccessTokensToServers([ server ]) | 26 | await setAccessTokensToServers([ server ]) |
27 | await setDefaultVideoChannel([ server ]) | 27 | await setDefaultVideoChannel([ server ]) |
28 | 28 | ||
29 | const videoId = (await server.videosCommand.quickUpload({ name: 'video' })).uuid | 29 | const videoId = (await server.videos.quickUpload({ name: 'video' })).uuid |
30 | 30 | ||
31 | { | 31 | { |
32 | const attributes = { | 32 | const attributes = { |
33 | displayName: 'Dr. Kenzo Tenma hospital videos', | 33 | displayName: 'Dr. Kenzo Tenma hospital videos', |
34 | privacy: VideoPlaylistPrivacy.PUBLIC, | 34 | privacy: VideoPlaylistPrivacy.PUBLIC, |
35 | videoChannelId: server.videoChannel.id | 35 | videoChannelId: server.store.channel.id |
36 | } | 36 | } |
37 | const created = await server.playlistsCommand.create({ attributes }) | 37 | const created = await server.playlists.create({ attributes }) |
38 | 38 | ||
39 | await server.playlistsCommand.addElement({ playlistId: created.id, attributes: { videoId } }) | 39 | await server.playlists.addElement({ playlistId: created.id, attributes: { videoId } }) |
40 | } | 40 | } |
41 | 41 | ||
42 | { | 42 | { |
43 | const attributes = { | 43 | const attributes = { |
44 | displayName: 'Johan & Anna Libert musics', | 44 | displayName: 'Johan & Anna Libert musics', |
45 | privacy: VideoPlaylistPrivacy.PUBLIC, | 45 | privacy: VideoPlaylistPrivacy.PUBLIC, |
46 | videoChannelId: server.videoChannel.id | 46 | videoChannelId: server.store.channel.id |
47 | } | 47 | } |
48 | const created = await server.playlistsCommand.create({ attributes }) | 48 | const created = await server.playlists.create({ attributes }) |
49 | 49 | ||
50 | await server.playlistsCommand.addElement({ playlistId: created.id, attributes: { videoId } }) | 50 | await server.playlists.addElement({ playlistId: created.id, attributes: { videoId } }) |
51 | } | 51 | } |
52 | 52 | ||
53 | { | 53 | { |
54 | const attributes = { | 54 | const attributes = { |
55 | displayName: 'Inspector Lunge playlist', | 55 | displayName: 'Inspector Lunge playlist', |
56 | privacy: VideoPlaylistPrivacy.PUBLIC, | 56 | privacy: VideoPlaylistPrivacy.PUBLIC, |
57 | videoChannelId: server.videoChannel.id | 57 | videoChannelId: server.store.channel.id |
58 | } | 58 | } |
59 | await server.playlistsCommand.create({ attributes }) | 59 | await server.playlists.create({ attributes }) |
60 | } | 60 | } |
61 | 61 | ||
62 | command = server.searchCommand | 62 | command = server.search |
63 | }) | 63 | }) |
64 | 64 | ||
65 | it('Should make a simple search and not have results', async function () { | 65 | it('Should make a simple search and not have results', async function () { |