diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-03 10:12:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-03 10:38:19 +0100 |
commit | 47564bbe2eeb2baae9b7e3f9b2b8d16522bc7e04 (patch) | |
tree | 25e2836baf3dfce6f422192d98332db1bfe65890 /server/tests/api/videos/single-server.ts | |
parent | c5911fd347c76e8bdc05ea9f3ee9efed4a58c236 (diff) | |
download | PeerTube-47564bbe2eeb2baae9b7e3f9b2b8d16522bc7e04.tar.gz PeerTube-47564bbe2eeb2baae9b7e3f9b2b8d16522bc7e04.tar.zst PeerTube-47564bbe2eeb2baae9b7e3f9b2b8d16522bc7e04.zip |
Add ability to disable video comments
Diffstat (limited to 'server/tests/api/videos/single-server.ts')
-rw-r--r-- | server/tests/api/videos/single-server.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts index 2a3126f32..0a0c95750 100644 --- a/server/tests/api/videos/single-server.ts +++ b/server/tests/api/videos/single-server.ts | |||
@@ -32,6 +32,7 @@ describe('Test a single server', function () { | |||
32 | duration: 5, | 32 | duration: 5, |
33 | tags: [ 'tag1', 'tag2', 'tag3' ], | 33 | tags: [ 'tag1', 'tag2', 'tag3' ], |
34 | privacy: VideoPrivacy.PUBLIC, | 34 | privacy: VideoPrivacy.PUBLIC, |
35 | commentsEnabled: true, | ||
35 | channel: { | 36 | channel: { |
36 | name: 'Default root channel', | 37 | name: 'Default root channel', |
37 | description: '', | 38 | description: '', |
@@ -51,7 +52,7 @@ describe('Test a single server', function () { | |||
51 | category: 4, | 52 | category: 4, |
52 | licence: 2, | 53 | licence: 2, |
53 | language: 5, | 54 | language: 5, |
54 | nsfw: true, | 55 | nsfw: false, |
55 | description: 'my super description updated', | 56 | description: 'my super description updated', |
56 | host: 'localhost:9001', | 57 | host: 'localhost:9001', |
57 | account: 'root', | 58 | account: 'root', |
@@ -59,6 +60,7 @@ describe('Test a single server', function () { | |||
59 | tags: [ 'tagup1', 'tagup2' ], | 60 | tags: [ 'tagup1', 'tagup2' ], |
60 | privacy: VideoPrivacy.PUBLIC, | 61 | privacy: VideoPrivacy.PUBLIC, |
61 | duration: 5, | 62 | duration: 5, |
63 | commentsEnabled: false, | ||
62 | channel: { | 64 | channel: { |
63 | name: 'Default root channel', | 65 | name: 'Default root channel', |
64 | description: '', | 66 | description: '', |
@@ -475,6 +477,7 @@ describe('Test a single server', function () { | |||
475 | language: 5, | 477 | language: 5, |
476 | nsfw: false, | 478 | nsfw: false, |
477 | description: 'my super description updated', | 479 | description: 'my super description updated', |
480 | commentsEnabled: false, | ||
478 | tags: [ 'tagup1', 'tagup2' ] | 481 | tags: [ 'tagup1', 'tagup2' ] |
479 | } | 482 | } |
480 | await updateVideo(server.url, server.accessToken, videoId, attributes) | 483 | await updateVideo(server.url, server.accessToken, videoId, attributes) |