diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-04 11:19:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-04 11:19:19 +0200 |
commit | eb87f9a4a90ffbac43075567eb0ea90e7379c4b2 (patch) | |
tree | ad4a00e316440839c4df52544ad4e964ed0be2d5 /server/tests | |
parent | b0c36821d1dcf362f14c99ca3741e7d03aea0a04 (diff) | |
download | PeerTube-eb87f9a4a90ffbac43075567eb0ea90e7379c4b2.tar.gz PeerTube-eb87f9a4a90ffbac43075567eb0ea90e7379c4b2.tar.zst PeerTube-eb87f9a4a90ffbac43075567eb0ea90e7379c4b2.zip |
Fix nsfw filter
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/videos/index.ts | 2 | ||||
-rw-r--r-- | server/tests/api/videos/video-nsfw.ts | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/server/tests/api/videos/index.ts b/server/tests/api/videos/index.ts index a328a49c1..bf58f9c79 100644 --- a/server/tests/api/videos/index.ts +++ b/server/tests/api/videos/index.ts | |||
@@ -5,7 +5,7 @@ import './video-abuse' | |||
5 | import './video-blacklist' | 5 | import './video-blacklist' |
6 | import './video-blacklist-management' | 6 | import './video-blacklist-management' |
7 | import './video-captions' | 7 | import './video-captions' |
8 | import './vidoe-change-ownership' | 8 | import './video-change-ownership' |
9 | import './video-channels' | 9 | import './video-channels' |
10 | import './video-comments' | 10 | import './video-comments' |
11 | import './video-description' | 11 | import './video-description' |
diff --git a/server/tests/api/videos/video-nsfw.ts b/server/tests/api/videos/video-nsfw.ts index 891148b07..eab7a6991 100644 --- a/server/tests/api/videos/video-nsfw.ts +++ b/server/tests/api/videos/video-nsfw.ts | |||
@@ -148,6 +148,9 @@ describe('Test video NSFW policy', function () { | |||
148 | }) | 148 | }) |
149 | 149 | ||
150 | it('Should display NSFW videos with blur user NSFW policy', async function () { | 150 | it('Should display NSFW videos with blur user NSFW policy', async function () { |
151 | customConfig.instance.defaultNSFWPolicy = 'do_not_list' | ||
152 | await updateCustomConfig(server.url, server.accessToken, customConfig) | ||
153 | |||
151 | for (const res of await getVideosFunctions(userAccessToken)) { | 154 | for (const res of await getVideosFunctions(userAccessToken)) { |
152 | expect(res.body.total).to.equal(2) | 155 | expect(res.body.total).to.equal(2) |
153 | 156 | ||