diff options
Diffstat (limited to 'server/tests/api/videos/audio-only.ts')
-rw-r--r-- | server/tests/api/videos/audio-only.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/videos/audio-only.ts b/server/tests/api/videos/audio-only.ts index f5b6a26e5..f12d730cc 100644 --- a/server/tests/api/videos/audio-only.ts +++ b/server/tests/api/videos/audio-only.ts | |||
@@ -22,7 +22,7 @@ import { VideoDetails } from '../../../../shared/models/videos' | |||
22 | import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type' | 22 | import { VideoStreamingPlaylistType } from '../../../../shared/models/videos/video-streaming-playlist.type' |
23 | import { join } from 'path' | 23 | import { join } from 'path' |
24 | import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants' | 24 | import { DEFAULT_AUDIO_RESOLUTION } from '../../../initializers/constants' |
25 | import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution, audio, getVideoFileSize } from '@server/helpers/ffmpeg-utils' | 25 | import { getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution, audio, getVideoStreamSize } from '@server/helpers/ffmpeg-utils' |
26 | 26 | ||
27 | const expect = chai.expect | 27 | const expect = chai.expect |
28 | 28 | ||
@@ -96,7 +96,7 @@ describe('Test audio only video transcoding', function () { | |||
96 | expect(audioStream[ 'codec_name' ]).to.be.equal('aac') | 96 | expect(audioStream[ 'codec_name' ]).to.be.equal('aac') |
97 | expect(audioStream[ 'bit_rate' ]).to.be.at.most(384 * 8000) | 97 | expect(audioStream[ 'bit_rate' ]).to.be.at.most(384 * 8000) |
98 | 98 | ||
99 | const size = await getVideoFileSize(path) | 99 | const size = await getVideoStreamSize(path) |
100 | expect(size.height).to.equal(0) | 100 | expect(size.height).to.equal(0) |
101 | expect(size.width).to.equal(0) | 101 | expect(size.width).to.equal(0) |
102 | } | 102 | } |