diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-14 13:53:12 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-12-16 10:08:43 +0100 |
commit | c77fdc605b3ccc1ab6890f889d8200fbe9372949 (patch) | |
tree | d0183004a6607409a8b3997476393b035e55c5c3 | |
parent | 9b3294a8496c89c7880054de1f1f09c9990f1b46 (diff) | |
download | PeerTube-c77fdc605b3ccc1ab6890f889d8200fbe9372949.tar.gz PeerTube-c77fdc605b3ccc1ab6890f889d8200fbe9372949.tar.zst PeerTube-c77fdc605b3ccc1ab6890f889d8200fbe9372949.zip |
Fix videos language tests
-rw-r--r-- | server/tests/shared/video.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions */ |
2 | import { dateIsValid, makeRawRequest, PeerTubeServer, testImage, webtorrentAdd } from '@shared/extra-utils' | 2 | import { dateIsValid, makeRawRequest, PeerTubeServer, testImage, webtorrentAdd } from '@shared/extra-utils' |
3 | import { expect } from 'chai' | 3 | import { expect } from 'chai' |
4 | import { VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '@server/initializers/constants' | 4 | import { loadLanguages, VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES, VIDEO_PRIVACIES } from '@server/initializers/constants' |
5 | import { getLowercaseExtension, uuidRegex } from '@shared/core-utils' | 5 | import { getLowercaseExtension, uuidRegex } from '@shared/core-utils' |
6 | 6 | ||
7 | loadLanguages() | ||
8 | |||
7 | export async function completeVideoCheck ( | 9 | export async function completeVideoCheck ( |
8 | server: PeerTubeServer, | 10 | server: PeerTubeServer, |
9 | video: any, | 11 | video: any, |