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/check-params/users.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/check-params/users.ts')
-rw-r--r-- | server/tests/api/check-params/users.ts | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index 44412ad82..33d92ac24 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts | |||
@@ -2,14 +2,13 @@ | |||
2 | 2 | ||
3 | import { omit } from 'lodash' | 3 | import { omit } from 'lodash' |
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { join } from "path" | 5 | import { join } from 'path' |
6 | import { UserRole } from '../../../../shared' | 6 | import { UserRole } from '../../../../shared' |
7 | 7 | ||
8 | import { | 8 | import { |
9 | createUser, flushTests, getMyUserInformation, getMyUserVideoRating, getUsersList, immutableAssign, killallServers, makeGetRequest, | 9 | createUser, flushTests, getMyUserInformation, getMyUserVideoRating, getUsersList, immutableAssign, killallServers, makeGetRequest, |
10 | makePostBodyRequest, makePostUploadRequest, makePutBodyRequest, registerUser, removeUser, runServer, ServerInfo, setAccessTokensToServers, | 10 | makePostBodyRequest, makePostUploadRequest, makePutBodyRequest, registerUser, removeUser, runServer, ServerInfo, setAccessTokensToServers, |
11 | updateUser, | 11 | updateUser, uploadVideo, userLogin |
12 | uploadVideo, userLogin | ||
13 | } from '../../utils' | 12 | } from '../../utils' |
14 | import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params' | 13 | import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params' |
15 | 14 | ||
@@ -25,7 +24,7 @@ describe('Test users API validators', function () { | |||
25 | // --------------------------------------------------------------- | 24 | // --------------------------------------------------------------- |
26 | 25 | ||
27 | before(async function () { | 26 | before(async function () { |
28 | this.timeout(120000) | 27 | this.timeout(20000) |
29 | 28 | ||
30 | await flushTests() | 29 | await flushTests() |
31 | 30 | ||
@@ -282,7 +281,14 @@ describe('Test users API validators', function () { | |||
282 | const attaches = { | 281 | const attaches = { |
283 | 'avatarfile': join(__dirname, '..', 'fixtures', 'avatar.png') | 282 | 'avatarfile': join(__dirname, '..', 'fixtures', 'avatar.png') |
284 | } | 283 | } |
285 | await makePostUploadRequest({ url: server.url, path: path + '/me/avatar/pick', token: server.accessToken, fields, attaches }) | 284 | await makePostUploadRequest({ |
285 | url: server.url, | ||
286 | path: path + '/me/avatar/pick', | ||
287 | token: server.accessToken, | ||
288 | fields, | ||
289 | attaches, | ||
290 | statusCodeExpected: 200 | ||
291 | }) | ||
286 | }) | 292 | }) |
287 | }) | 293 | }) |
288 | 294 | ||