diff options
Diffstat (limited to 'server/tests/api/videos/videos-overview.ts')
-rw-r--r-- | server/tests/api/videos/videos-overview.ts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/server/tests/api/videos/videos-overview.ts b/server/tests/api/videos/videos-overview.ts index ccbc6f4a4..a2da2eaef 100644 --- a/server/tests/api/videos/videos-overview.ts +++ b/server/tests/api/videos/videos-overview.ts | |||
@@ -2,15 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
5 | import { | 5 | import { cleanupTests, flushAndRunServer, ServerInfo, setAccessTokensToServers, uploadVideo, wait } from '@shared/extra-utils' |
6 | cleanupTests, | ||
7 | flushAndRunServer, | ||
8 | generateUserAccessToken, | ||
9 | ServerInfo, | ||
10 | setAccessTokensToServers, | ||
11 | uploadVideo, | ||
12 | wait | ||
13 | } from '@shared/extra-utils' | ||
14 | import { VideosOverview } from '@shared/models' | 6 | import { VideosOverview } from '@shared/models' |
15 | 7 | ||
16 | const expect = chai.expect | 8 | const expect = chai.expect |
@@ -112,7 +104,7 @@ describe('Test a videos overview', function () { | |||
112 | }) | 104 | }) |
113 | 105 | ||
114 | it('Should hide muted accounts', async function () { | 106 | it('Should hide muted accounts', async function () { |
115 | const token = await generateUserAccessToken(server, 'choco') | 107 | const token = await server.usersCommand.generateUserAndToken('choco') |
116 | 108 | ||
117 | await server.blocklistCommand.addToMyBlocklist({ token, account: 'root@' + server.host }) | 109 | await server.blocklistCommand.addToMyBlocklist({ token, account: 'root@' + server.host }) |
118 | 110 | ||