X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Ftranslations.ts;h=9fd2ba1c5e0b8181ba4da78b6cba602c319aca29;hb=dc3d902234bb73fbc8cf9787e3036f2012526e6c;hp=8dc2043b8509867009a29b14bfdec5d2e3d40af7;hpb=7024e9120b381b5b3201212f5a18f5cdc14e15ff;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/translations.ts b/server/tests/plugins/translations.ts index 8dc2043b8..9fd2ba1c5 100644 --- a/server/tests/plugins/translations.ts +++ b/server/tests/plugins/translations.ts @@ -31,7 +31,7 @@ describe('Test plugin translations', function () { await installPlugin({ url: server.url, accessToken: server.accessToken, - path: getPluginTestPath('-two') + path: getPluginTestPath('-filter-translations') }) }) @@ -48,7 +48,7 @@ describe('Test plugin translations', function () { 'peertube-plugin-test': { Hi: 'Coucou' }, - 'peertube-plugin-test-two': { + 'peertube-plugin-test-filter-translations': { 'Hello world': 'Bonjour le monde' } }) @@ -58,14 +58,14 @@ describe('Test plugin translations', function () { const res = await getPluginTranslations({ url: server.url, locale: 'it-IT' }) expect(res.body).to.deep.equal({ - 'peertube-plugin-test-two': { + 'peertube-plugin-test-filter-translations': { 'Hello world': 'Ciao, mondo!' } }) }) it('Should remove the plugin and remove the locales', async function () { - await uninstallPlugin({ url: server.url, accessToken: server.accessToken, npmName: 'peertube-plugin-test-two' }) + await uninstallPlugin({ url: server.url, accessToken: server.accessToken, npmName: 'peertube-plugin-test-filter-translations' }) { const res = await getPluginTranslations({ url: server.url, locale: 'fr-FR' })