From a742347d50234793fceb08034c20e6881a65d544 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 14 Nov 2022 14:34:22 +0100 Subject: [PATCH] Fix transcoding test --- server/tests/api/transcoding/audio-only.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/tests/api/transcoding/audio-only.ts b/server/tests/api/transcoding/audio-only.ts index 1897c6d6d..b72f5fdbe 100644 --- a/server/tests/api/transcoding/audio-only.ts +++ b/server/tests/api/transcoding/audio-only.ts @@ -89,7 +89,12 @@ describe('Test audio only video transcoding', function () { expect(audioStream['bit_rate']).to.be.at.most(384 * 8000) const size = await getVideoStreamDimensionsInfo(path) - expect(size).to.not.exist + + expect(size.height).to.equal(0) + expect(size.width).to.equal(0) + expect(size.isPortraitMode).to.be.false + expect(size.ratio).to.equal(0) + expect(size.resolution).to.equal(0) } })