import * as request from 'supertest'
import { VideoPrivacy } from '../../../../shared/models/videos'
import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
-
import {
addVideoChannel,
checkVideoFilesWereRemoved,
{
const videoChannel = {
+ name: 'super_channel_name',
displayName: 'my channel',
description: 'super channel'
}
privacy: VideoPrivacy.PUBLIC,
commentsEnabled: true,
channel: {
- name: 'my channel',
+ displayName: 'my channel',
+ name: 'super_channel_name',
description: 'super channel',
isLocal
},
tags: [ 'tag1p2', 'tag2p2', 'tag3p2' ],
privacy: VideoPrivacy.PUBLIC,
channel: {
- name: 'Default user1 channel',
+ displayName: 'Main user1 channel',
+ name: 'user1_channel',
description: 'super channel',
isLocal
},
files: [
{
resolution: 240,
- size: 280000
+ size: 187000
},
{
resolution: 360,
- size: 370000
+ size: 278000
},
{
resolution: 480,
- size: 470000
+ size: 383000
},
{
resolution: 720,
- size: 740000
+ size: 706000
}
],
thumbnailfile: 'thumbnail',
tags: [ 'tag1p3' ],
privacy: VideoPrivacy.PUBLIC,
channel: {
- name: 'Default root channel',
+ displayName: 'Main root channel',
+ name: 'root_channel',
description: '',
isLocal
},
tags: [ 'tag2p3', 'tag3p3', 'tag4p3' ],
privacy: VideoPrivacy.PUBLIC,
channel: {
- name: 'Default root channel',
+ displayName: 'Main root channel',
+ name: 'root_channel',
description: '',
isLocal
},
tags: [ 'tag_up_1', 'tag_up_2' ],
privacy: VideoPrivacy.PUBLIC,
channel: {
- name: 'Default root channel',
+ displayName: 'Main root channel',
+ name: 'root_channel',
description: '',
isLocal
},
tags: [ ],
privacy: VideoPrivacy.PUBLIC,
channel: {
- name: 'Default root channel',
+ displayName: 'Main root channel',
+ name: 'root_channel',
description: '',
isLocal
},