From e7d8e2b245491c0a8e008fb570037506d729ff04 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 May 2023 10:53:04 +0200 Subject: Fix audio transcoding copy --- server/tests/helpers/core-utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/tests/helpers') diff --git a/server/tests/helpers/core-utils.ts b/server/tests/helpers/core-utils.ts index de6ba4f82..cd2f07e4a 100644 --- a/server/tests/helpers/core-utils.ts +++ b/server/tests/helpers/core-utils.ts @@ -3,7 +3,7 @@ import { expect } from 'chai' import { snakeCase } from 'lodash' import validator from 'validator' -import { getAverageBitrate, getMaxBitrate } from '@shared/core-utils' +import { getAverageTheoreticalBitrate, getMaxTheoreticalBitrate } from '@shared/core-utils' import { VideoResolution } from '@shared/models' import { objectConverter, parseBytes, parseDurationToMs } from '../../helpers/core-utils' @@ -128,7 +128,7 @@ describe('Bitrate', function () { ] for (const test of tests) { - expect(getMaxBitrate(test)).to.be.above(test.min * 1000).and.below(test.max * 1000) + expect(getMaxTheoreticalBitrate(test)).to.be.above(test.min * 1000).and.below(test.max * 1000) } }) @@ -144,7 +144,7 @@ describe('Bitrate', function () { ] for (const test of tests) { - expect(getAverageBitrate(test)).to.be.above(test.min * 1000).and.below(test.max * 1000) + expect(getAverageTheoreticalBitrate(test)).to.be.above(test.min * 1000).and.below(test.max * 1000) } }) }) -- cgit v1.2.3