diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-22 15:42:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-22 15:42:55 +0200 |
commit | 0c237b19fdf9c614293c1442f0ab95a81ce05735 (patch) | |
tree | 81f7ae4262630da5e8041bd70e2cb856e48253a3 /server/tests/api/check-params/videos.ts | |
parent | c4082b8b4e3684baae0172e97297c936d7419f2c (diff) | |
download | PeerTube-0c237b19fdf9c614293c1442f0ab95a81ce05735.tar.gz PeerTube-0c237b19fdf9c614293c1442f0ab95a81ce05735.tar.zst PeerTube-0c237b19fdf9c614293c1442f0ab95a81ce05735.zip |
Fix images size limit
Diffstat (limited to 'server/tests/api/check-params/videos.ts')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index abbea6ba3..7fce8ba7c 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -326,7 +326,7 @@ describe('Test videos API validator', function () { | |||
326 | const fields = baseCorrectParams | 326 | const fields = baseCorrectParams |
327 | const attaches = { | 327 | const attaches = { |
328 | 'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'), | 328 | 'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'), |
329 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm') | 329 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4') |
330 | } | 330 | } |
331 | 331 | ||
332 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 332 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
@@ -336,7 +336,7 @@ describe('Test videos API validator', function () { | |||
336 | const fields = baseCorrectParams | 336 | const fields = baseCorrectParams |
337 | const attaches = { | 337 | const attaches = { |
338 | 'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'), | 338 | 'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'), |
339 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm') | 339 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4') |
340 | } | 340 | } |
341 | 341 | ||
342 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 342 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
@@ -346,7 +346,7 @@ describe('Test videos API validator', function () { | |||
346 | const fields = baseCorrectParams | 346 | const fields = baseCorrectParams |
347 | const attaches = { | 347 | const attaches = { |
348 | 'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'), | 348 | 'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'), |
349 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm') | 349 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4') |
350 | } | 350 | } |
351 | 351 | ||
352 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 352 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
@@ -356,7 +356,7 @@ describe('Test videos API validator', function () { | |||
356 | const fields = baseCorrectParams | 356 | const fields = baseCorrectParams |
357 | const attaches = { | 357 | const attaches = { |
358 | 'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'), | 358 | 'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'), |
359 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm') | 359 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4') |
360 | } | 360 | } |
361 | 361 | ||
362 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 362 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |