Fix videos language tests

This commit is contained in:
Chocobozzz 2021-12-14 13:53:12 +01:00 committed by Chocobozzz
parent 9b3294a849
commit c77fdc605b
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
/* eslint-disable @typescript-eslint/no-unused-expressions */ /* eslint-disable @typescript-eslint/no-unused-expressions */
import { dateIsValid, makeRawRequest, PeerTubeServer, testImage, webtorrentAdd } from '@shared/extra-utils' import { dateIsValid, makeRawRequest, PeerTubeServer, testImage, webtorrentAdd } from '@shared/extra-utils'
import { expect } from 'chai' import { expect } from 'chai'
import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '@server/initializers/constants' import { loadLanguages, VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '@server/initializers/constants'
import { getLowercaseExtension, uuidRegex } from '@shared/core-utils' import { getLowercaseExtension, uuidRegex } from '@shared/core-utils'
loadLanguages()
export async function completeVideoCheck ( export async function completeVideoCheck (
server: PeerTubeServer, server: PeerTubeServer,
video: any, video: any,