import 'mocha'
import { join } from 'path'
import { VideoPrivacy } from '../../../../shared/models/videos'
+import { readdirPromise } from '../../../helpers/core-utils'
import {
- dateIsValid,
- flushTests,
- getVideo,
- getVideoCategories,
- getVideoLanguages,
- getVideoLicences,
- getVideoPrivacies,
- getVideosList,
- getVideosListPagination,
- getVideosListSort,
- killallServers,
- rateVideo,
- readdirPromise,
- removeVideo,
- runServer,
- searchVideo,
- searchVideoWithPagination,
- searchVideoWithSort,
- ServerInfo,
- setAccessTokensToServers,
- testVideoImage,
- updateVideo,
- uploadVideo,
- wait,
- webtorrentAdd,
- viewVideo, completeVideoCheck, immutableAssign
+ completeVideoCheck, flushTests, getVideo, getVideoCategories, getVideoLanguages, getVideoLicences, getVideoPrivacies,
+ getVideosList, getVideosListPagination, getVideosListSort, killallServers, rateVideo, removeVideo, runServer, searchVideo,
+ searchVideoWithPagination, searchVideoWithSort, ServerInfo, setAccessTokensToServers, testVideoImage, updateVideo, uploadVideo, viewVideo
} from '../../utils'
const expect = chai.expect
duration: 5,
tags: [ 'tag1', 'tag2', 'tag3' ],
privacy: VideoPrivacy.PUBLIC,
+ commentsEnabled: true,
channel: {
name: 'Default root channel',
description: '',
category: 4,
licence: 2,
language: 5,
- nsfw: true,
+ nsfw: false,
description: 'my super description updated',
host: 'localhost:9001',
account: 'root',
tags: [ 'tagup1', 'tagup2' ],
privacy: VideoPrivacy.PUBLIC,
duration: 5,
+ commentsEnabled: false,
channel: {
name: 'Default root channel',
description: '',
language: 5,
nsfw: false,
description: 'my super description updated',
+ commentsEnabled: false,
tags: [ 'tagup1', 'tagup2' ]
}
await updateVideo(server.url, server.accessToken, videoId, attributes)