diff options
Diffstat (limited to 'server/tests/plugins')
-rw-r--r-- | server/tests/plugins/filter-hooks.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index 27b72cf7d..33feadab6 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts | |||
@@ -677,6 +677,19 @@ describe('Test plugin filter hooks', function () { | |||
677 | }) | 677 | }) |
678 | }) | 678 | }) |
679 | 679 | ||
680 | describe('Transcoding filters', async function () { | ||
681 | |||
682 | it('Should run filter:transcoding.auto.lower-resolutions-to-transcode.result', async function () { | ||
683 | const { uuid } = await servers[0].videos.quickUpload({ name: 'transcode-filter' }) | ||
684 | |||
685 | await waitJobs(servers) | ||
686 | |||
687 | const video = await servers[0].videos.get({ id: uuid }) | ||
688 | expect(video.files).to.have.lengthOf(2) | ||
689 | expect(video.files.find(f => f.resolution.id === 100 as any)).to.exist | ||
690 | }) | ||
691 | }) | ||
692 | |||
680 | after(async function () { | 693 | after(async function () { |
681 | await cleanupTests(servers) | 694 | await cleanupTests(servers) |
682 | }) | 695 | }) |