diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 09:47:51 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch) | |
tree | eaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /server/tests/plugins/translations.ts | |
parent | 89d241a79c262b9775c233b73cff080043ebb5e6 (diff) | |
download | PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip |
Use an object to represent a server
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 |