From c77fdc605b3ccc1ab6890f889d8200fbe9372949 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 14 Dec 2021 13:53:12 +0100 Subject: Fix videos language tests --- server/tests/shared/video.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/tests/shared') diff --git a/server/tests/shared/video.ts b/server/tests/shared/video.ts index 0e6a00f5c..95b30b27c 100644 --- a/server/tests/shared/video.ts +++ b/server/tests/shared/video.ts @@ -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, -- cgit v1.2.3