X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Ftranslations.ts;h=8dc2043b8509867009a29b14bfdec5d2e3d40af7;hb=97b65ce58aaacbbfec2291f18fb95a9da9eb5263;hp=88d91a03338f4782b53ee42e1ed1a964348a121b;hpb=d75db01f14138ea660c4c519e37ab05228b39d13;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/translations.ts b/server/tests/plugins/translations.ts index 88d91a033..8dc2043b8 100644 --- a/server/tests/plugins/translations.ts +++ b/server/tests/plugins/translations.ts @@ -1,38 +1,15 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import * as chai from 'chai' import 'mocha' +import { cleanupTests, flushAndRunServer, ServerInfo } from '../../../shared/extra-utils/server/servers' import { - cleanupTests, - flushAndRunMultipleServers, - flushAndRunServer, killallServers, reRunServer, - ServerInfo, - waitUntilLog -} from '../../../shared/extra-utils/server/servers' -import { - addVideoCommentReply, - addVideoCommentThread, - deleteVideoComment, getPluginTestPath, - getVideosList, + getPluginTranslations, installPlugin, - removeVideo, setAccessTokensToServers, - updateVideo, - uploadVideo, - viewVideo, - getVideosListPagination, - getVideo, - getVideoCommentThreads, - getVideoThreadComments, - getVideoWithToken, - setDefaultVideoChannel, - waitJobs, - doubleFollow, getVideoLanguages, getVideoLicences, getVideoCategories, uninstallPlugin, getPluginTranslations + uninstallPlugin } from '../../../shared/extra-utils' -import { VideoCommentThreadTree } from '../../../shared/models/videos/video-comment.model' -import { VideoDetails } from '../../../shared/models/videos' -import { getYoutubeVideoUrl, importVideo } from '../../../shared/extra-utils/videos/video-imports' const expect = chai.expect @@ -69,7 +46,7 @@ describe('Test plugin translations', function () { expect(res.body).to.deep.equal({ 'peertube-plugin-test': { - 'Hi': 'Coucou' + Hi: 'Coucou' }, 'peertube-plugin-test-two': { 'Hello world': 'Bonjour le monde' @@ -95,7 +72,7 @@ describe('Test plugin translations', function () { expect(res.body).to.deep.equal({ 'peertube-plugin-test': { - 'Hi': 'Coucou' + Hi: 'Coucou' } }) }