diff options
Diffstat (limited to 'server/tests/plugins/translations.ts')
-rw-r--r-- | server/tests/plugins/translations.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/tests/plugins/translations.ts b/server/tests/plugins/translations.ts index d8d878026..8b25c6b75 100644 --- a/server/tests/plugins/translations.ts +++ b/server/tests/plugins/translations.ts | |||
@@ -2,19 +2,18 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { PluginsCommand, setAccessTokensToServers } from '../../../shared/extra-utils' | 5 | import { cleanupTests, createSingleServer, PeerTubeServer, PluginsCommand, setAccessTokensToServers } from '@shared/extra-utils' |
6 | import { cleanupTests, flushAndRunServer, ServerInfo } from '../../../shared/extra-utils/server/servers' | ||
7 | 6 | ||
8 | const expect = chai.expect | 7 | const expect = chai.expect |
9 | 8 | ||
10 | describe('Test plugin translations', function () { | 9 | describe('Test plugin translations', function () { |
11 | let server: ServerInfo | 10 | let server: PeerTubeServer |
12 | let command: PluginsCommand | 11 | let command: PluginsCommand |
13 | 12 | ||
14 | before(async function () { | 13 | before(async function () { |
15 | this.timeout(30000) | 14 | this.timeout(30000) |
16 | 15 | ||
17 | server = await flushAndRunServer(1) | 16 | server = await createSingleServer(1) |
18 | await setAccessTokensToServers([ server ]) | 17 | await setAccessTokensToServers([ server ]) |
19 | 18 | ||
20 | command = server.plugins | 19 | command = server.plugins |