diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 14:27:30 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:19 +0200 |
commit | 4c7e60bc17ee5830399bac4aa273356903421b4c (patch) | |
tree | 9e67397cf49b229b5bc0f9747f1a7e387bba558a /server/tests/api/videos/video-nsfw.ts | |
parent | c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea (diff) | |
download | PeerTube-4c7e60bc17ee5830399bac4aa273356903421b4c.tar.gz PeerTube-4c7e60bc17ee5830399bac4aa273356903421b4c.tar.zst PeerTube-4c7e60bc17ee5830399bac4aa273356903421b4c.zip |
Reorganize imports
Diffstat (limited to 'server/tests/api/videos/video-nsfw.ts')
-rw-r--r-- | server/tests/api/videos/video-nsfw.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index 0a9e5ce3f..b5d183d62 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts | |||
@@ -30,8 +30,8 @@ describe('Test video NSFW policy', function () { | |||
30 | promises = [ | 30 | promises = [ |
31 | server.search.advancedVideoSearch({ token, search: { search: 'n', sort: '-publishedAt', ...query } }), | 31 | server.search.advancedVideoSearch({ token, search: { search: 'n', sort: '-publishedAt', ...query } }), |
32 | server.videos.listWithToken({ token, ...query }), | 32 | server.videos.listWithToken({ token, ...query }), |
33 | server.videos.listByAccount({ token, handle: channelName, ...query }), | 33 | server.videos.listByAccount({ token, handle: accountName, ...query }), |
34 | server.videos.listByChannel({ token, handle: accountName, ...query }) | 34 | server.videos.listByChannel({ token, handle: channelName, ...query }) |
35 | ] | 35 | ] |
36 | 36 | ||
37 | // Overviews do not support video filters | 37 | // Overviews do not support video filters |
@@ -47,8 +47,8 @@ describe('Test video NSFW policy', function () { | |||
47 | promises = [ | 47 | promises = [ |
48 | server.search.searchVideos({ search: 'n', sort: '-publishedAt' }), | 48 | server.search.searchVideos({ search: 'n', sort: '-publishedAt' }), |
49 | server.videos.list(), | 49 | server.videos.list(), |
50 | server.videos.listByAccount({ handle: channelName }), | 50 | server.videos.listByAccount({ token: null, handle: accountName }), |
51 | server.videos.listByChannel({ handle: accountName }) | 51 | server.videos.listByChannel({ token: null, handle: channelName }) |
52 | ] | 52 | ] |
53 | 53 | ||
54 | // Overviews do not support video filters | 54 | // Overviews do not support video filters |
@@ -82,6 +82,7 @@ describe('Test video NSFW policy', function () { | |||
82 | }) | 82 | }) |
83 | 83 | ||
84 | describe('Instance default NSFW policy', function () { | 84 | describe('Instance default NSFW policy', function () { |
85 | |||
85 | it('Should display NSFW videos with display default NSFW policy', async function () { | 86 | it('Should display NSFW videos with display default NSFW policy', async function () { |
86 | const serverConfig = await server.config.getConfig() | 87 | const serverConfig = await server.config.getConfig() |
87 | expect(serverConfig.instance.defaultNSFWPolicy).to.equal('display') | 88 | expect(serverConfig.instance.defaultNSFWPolicy).to.equal('display') |