diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 08:33:02 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 0d8ecb7592577f54012413a2b5a9b159cfc90399 (patch) | |
tree | 53a54395e368b8cf6876287a53e30f1be79b3870 /server/tests/api/videos/video-nsfw.ts | |
parent | 5e2fea3ab9357c228b5d21166092f9a2368e258e (diff) | |
download | PeerTube-0d8ecb7592577f54012413a2b5a9b159cfc90399.tar.gz PeerTube-0d8ecb7592577f54012413a2b5a9b159cfc90399.tar.zst PeerTube-0d8ecb7592577f54012413a2b5a9b159cfc90399.zip |
Fix NSFW tests
Diffstat (limited to 'server/tests/api/videos/video-nsfw.ts')
-rw-r--r-- | server/tests/api/videos/video-nsfw.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index 5f30939cc..c9c3792eb 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts | |||
@@ -43,7 +43,7 @@ describe('Test video NSFW policy', function () { | |||
43 | if (token) { | 43 | if (token) { |
44 | promises = [ | 44 | promises = [ |
45 | getVideosListWithToken(server.url, token, query).then(res => res.body), | 45 | getVideosListWithToken(server.url, token, query).then(res => res.body), |
46 | server.searchCommand.advancedVideoSearch({ token, search: { search: 'n', ...query } }), | 46 | server.searchCommand.advancedVideoSearch({ token, search: { search: 'n', sort: '-publishedAt', ...query } }), |
47 | getAccountVideos(server.url, token, accountName, 0, 5, undefined, query).then(res => res.body), | 47 | getAccountVideos(server.url, token, accountName, 0, 5, undefined, query).then(res => res.body), |
48 | getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query).then(res => res.body) | 48 | getVideoChannelVideos(server.url, token, videoChannelName, 0, 5, undefined, query).then(res => res.body) |
49 | ] | 49 | ] |
@@ -60,7 +60,7 @@ describe('Test video NSFW policy', function () { | |||
60 | 60 | ||
61 | promises = [ | 61 | promises = [ |
62 | getVideosList(server.url).then(res => res.body), | 62 | getVideosList(server.url).then(res => res.body), |
63 | server.searchCommand.searchVideos({ search: 'n' }), | 63 | server.searchCommand.searchVideos({ search: 'n', sort: '-publishedAt' }), |
64 | getAccountVideos(server.url, undefined, accountName, 0, 5).then(res => res.body), | 64 | getAccountVideos(server.url, undefined, accountName, 0, 5).then(res => res.body), |
65 | getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5).then(res => res.body) | 65 | getVideoChannelVideos(server.url, undefined, videoChannelName, 0, 5).then(res => res.body) |
66 | ] | 66 | ] |