diff options
Diffstat (limited to 'server/tests/plugins')
-rw-r--r-- | server/tests/plugins/video-constants.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/tests/plugins/video-constants.ts b/server/tests/plugins/video-constants.ts index 5ee41fee1..eb014c596 100644 --- a/server/tests/plugins/video-constants.ts +++ b/server/tests/plugins/video-constants.ts | |||
@@ -32,7 +32,7 @@ describe('Test plugin altering video constants', function () { | |||
32 | await installPlugin({ | 32 | await installPlugin({ |
33 | url: server.url, | 33 | url: server.url, |
34 | accessToken: server.accessToken, | 34 | accessToken: server.accessToken, |
35 | path: getPluginTestPath('-three') | 35 | path: getPluginTestPath('-video-constants') |
36 | }) | 36 | }) |
37 | }) | 37 | }) |
38 | 38 | ||
@@ -45,6 +45,7 @@ describe('Test plugin altering video constants', function () { | |||
45 | 45 | ||
46 | expect(languages['al_bhed']).to.equal('Al Bhed') | 46 | expect(languages['al_bhed']).to.equal('Al Bhed') |
47 | expect(languages['al_bhed2']).to.equal('Al Bhed 2') | 47 | expect(languages['al_bhed2']).to.equal('Al Bhed 2') |
48 | expect(languages['al_bhed3']).to.not.exist | ||
48 | }) | 49 | }) |
49 | 50 | ||
50 | it('Should have updated categories', async function () { | 51 | it('Should have updated categories', async function () { |
@@ -116,7 +117,7 @@ describe('Test plugin altering video constants', function () { | |||
116 | }) | 117 | }) |
117 | 118 | ||
118 | it('Should uninstall the plugin and reset languages, categories, licences and privacies', async function () { | 119 | it('Should uninstall the plugin and reset languages, categories, licences and privacies', async function () { |
119 | await uninstallPlugin({ url: server.url, accessToken: server.accessToken, npmName: 'peertube-plugin-test-three' }) | 120 | await uninstallPlugin({ url: server.url, accessToken: server.accessToken, npmName: 'peertube-plugin-test-video-constants' }) |
120 | 121 | ||
121 | { | 122 | { |
122 | const res = await getVideoLanguages(server.url) | 123 | const res = await getVideoLanguages(server.url) |
@@ -127,6 +128,7 @@ describe('Test plugin altering video constants', function () { | |||
127 | 128 | ||
128 | expect(languages['al_bhed']).to.not.exist | 129 | expect(languages['al_bhed']).to.not.exist |
129 | expect(languages['al_bhed2']).to.not.exist | 130 | expect(languages['al_bhed2']).to.not.exist |
131 | expect(languages['al_bhed3']).to.not.exist | ||
130 | } | 132 | } |
131 | 133 | ||
132 | { | 134 | { |