]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix videos language tests
authorChocobozzz <me@florianbigard.com>
Tue, 14 Dec 2021 12:53:12 +0000 (13:53 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Thu, 16 Dec 2021 09:08:43 +0000 (10:08 +0100)
server/tests/shared/video.ts

index 0e6a00f5c86953a574079781ae591b8a7c2352d5..95b30b27c3eca01e3929b906ea12afd118189a00 100644 (file)
@@ -1,9 +1,11 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions */
 import { dateIsValid, makeRawRequest, PeerTubeServer, testImage, webtorrentAdd } from '@shared/extra-utils'
 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'
 
+loadLanguages()
+
 export async function completeVideoCheck (
   server: PeerTubeServer,
   video: any,