diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-26 11:37:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-26 11:37:31 +0100 |
commit | e9cb361cf51d11ef603128fb6715c103becf5123 (patch) | |
tree | d71b8aca37891dc5e6316786077b86087d07963a /server/tests/api/check-params/videos.ts | |
parent | ddb62a85c5517d3437feb7d487a8a11881b68fcb (diff) | |
download | PeerTube-e9cb361cf51d11ef603128fb6715c103becf5123.tar.gz PeerTube-e9cb361cf51d11ef603128fb6715c103becf5123.tar.zst PeerTube-e9cb361cf51d11ef603128fb6715c103becf5123.zip |
Fix tests
Diffstat (limited to 'server/tests/api/check-params/videos.ts')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index 5faba82c4..188d1835c 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -373,7 +373,7 @@ describe('Test videos API validator', function () { | |||
373 | it('Should fail with an incorrect thumbnail file', async function () { | 373 | it('Should fail with an incorrect thumbnail file', async function () { |
374 | const fields = baseCorrectParams | 374 | const fields = baseCorrectParams |
375 | const attaches = { | 375 | const attaches = { |
376 | thumbnailfile: join(root(), 'server', 'tests', 'fixtures', 'avatar.png'), | 376 | thumbnailfile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4'), |
377 | videofile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') | 377 | videofile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') |
378 | } | 378 | } |
379 | 379 | ||
@@ -383,7 +383,7 @@ describe('Test videos API validator', function () { | |||
383 | it('Should fail with a big thumbnail file', async function () { | 383 | it('Should fail with a big thumbnail file', async function () { |
384 | const fields = baseCorrectParams | 384 | const fields = baseCorrectParams |
385 | const attaches = { | 385 | const attaches = { |
386 | thumbnailfile: join(root(), 'server', 'tests', 'fixtures', 'avatar-big.png'), | 386 | thumbnailfile: join(root(), 'server', 'tests', 'fixtures', 'preview-big.png'), |
387 | videofile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') | 387 | videofile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') |
388 | } | 388 | } |
389 | 389 | ||
@@ -393,7 +393,7 @@ describe('Test videos API validator', function () { | |||
393 | it('Should fail with an incorrect preview file', async function () { | 393 | it('Should fail with an incorrect preview file', async function () { |
394 | const fields = baseCorrectParams | 394 | const fields = baseCorrectParams |
395 | const attaches = { | 395 | const attaches = { |
396 | previewfile: join(root(), 'server', 'tests', 'fixtures', 'avatar.png'), | 396 | previewfile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4'), |
397 | videofile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') | 397 | videofile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') |
398 | } | 398 | } |
399 | 399 | ||
@@ -403,7 +403,7 @@ describe('Test videos API validator', function () { | |||
403 | it('Should fail with a big preview file', async function () { | 403 | it('Should fail with a big preview file', async function () { |
404 | const fields = baseCorrectParams | 404 | const fields = baseCorrectParams |
405 | const attaches = { | 405 | const attaches = { |
406 | previewfile: join(root(), 'server', 'tests', 'fixtures', 'avatar-big.png'), | 406 | previewfile: join(root(), 'server', 'tests', 'fixtures', 'preview-big.png'), |
407 | videofile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') | 407 | videofile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') |
408 | } | 408 | } |
409 | 409 | ||
@@ -581,7 +581,7 @@ describe('Test videos API validator', function () { | |||
581 | it('Should fail with an incorrect thumbnail file', async function () { | 581 | it('Should fail with an incorrect thumbnail file', async function () { |
582 | const fields = baseCorrectParams | 582 | const fields = baseCorrectParams |
583 | const attaches = { | 583 | const attaches = { |
584 | thumbnailfile: join(root(), 'server', 'tests', 'fixtures', 'avatar.png') | 584 | thumbnailfile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') |
585 | } | 585 | } |
586 | 586 | ||
587 | await makeUploadRequest({ | 587 | await makeUploadRequest({ |
@@ -597,7 +597,7 @@ describe('Test videos API validator', function () { | |||
597 | it('Should fail with a big thumbnail file', async function () { | 597 | it('Should fail with a big thumbnail file', async function () { |
598 | const fields = baseCorrectParams | 598 | const fields = baseCorrectParams |
599 | const attaches = { | 599 | const attaches = { |
600 | thumbnailfile: join(root(), 'server', 'tests', 'fixtures', 'avatar-big.png') | 600 | thumbnailfile: join(root(), 'server', 'tests', 'fixtures', 'preview-big.png') |
601 | } | 601 | } |
602 | 602 | ||
603 | await makeUploadRequest({ | 603 | await makeUploadRequest({ |
@@ -613,7 +613,7 @@ describe('Test videos API validator', function () { | |||
613 | it('Should fail with an incorrect preview file', async function () { | 613 | it('Should fail with an incorrect preview file', async function () { |
614 | const fields = baseCorrectParams | 614 | const fields = baseCorrectParams |
615 | const attaches = { | 615 | const attaches = { |
616 | previewfile: join(root(), 'server', 'tests', 'fixtures', 'avatar.png') | 616 | previewfile: join(root(), 'server', 'tests', 'fixtures', 'video_short.mp4') |
617 | } | 617 | } |
618 | 618 | ||
619 | await makeUploadRequest({ | 619 | await makeUploadRequest({ |
@@ -629,7 +629,7 @@ describe('Test videos API validator', function () { | |||
629 | it('Should fail with a big preview file', async function () { | 629 | it('Should fail with a big preview file', async function () { |
630 | const fields = baseCorrectParams | 630 | const fields = baseCorrectParams |
631 | const attaches = { | 631 | const attaches = { |
632 | previewfile: join(root(), 'server', 'tests', 'fixtures', 'avatar-big.png') | 632 | previewfile: join(root(), 'server', 'tests', 'fixtures', 'preview-big.png') |
633 | } | 633 | } |
634 | 634 | ||
635 | await makeUploadRequest({ | 635 | await makeUploadRequest({ |