/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import 'mocha'
-import { HttpStatusCode } from '@shared/models'
import {
buildAbsoluteFixturePath,
cleanupTests,
PeerTubeServer,
setAccessTokensToServers
} from '@shared/extra-utils'
-import { VideoCreateResult } from '@shared/models'
+import { HttpStatusCode, VideoCreateResult } from '@shared/models'
describe('Test video captions API validator', function () {
const path = '/api/v1/videos/'
// })
it('Should succeed with a valid captionfile extension and octet-stream mime type', async function () {
- await server.captions.createVideoCaption({
+ await server.captions.add({
language: 'zh',
videoId: video.uuid,
fixture: 'subtitle-good.srt',