diff options
Diffstat (limited to 'server/tests/api/search/search-channels.ts')
-rw-r--r-- | server/tests/api/search/search-channels.ts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/server/tests/api/search/search-channels.ts b/server/tests/api/search/search-channels.ts index 307bc063d..6c9ee73ce 100644 --- a/server/tests/api/search/search-channels.ts +++ b/server/tests/api/search/search-channels.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, createUser, flushAndRunServer, SearchCommand, ServerInfo, setAccessTokensToServers } from '@shared/extra-utils' |
6 | addVideoChannel, | ||
7 | cleanupTests, | ||
8 | createUser, | ||
9 | flushAndRunServer, | ||
10 | SearchCommand, | ||
11 | ServerInfo, | ||
12 | setAccessTokensToServers | ||
13 | } from '@shared/extra-utils' | ||
14 | import { VideoChannel } from '@shared/models' | 6 | import { VideoChannel } from '@shared/models' |
15 | 7 | ||
16 | const expect = chai.expect | 8 | const expect = chai.expect |
@@ -32,7 +24,7 @@ describe('Test channels search', function () { | |||
32 | name: 'squall_channel', | 24 | name: 'squall_channel', |
33 | displayName: 'Squall channel' | 25 | displayName: 'Squall channel' |
34 | } | 26 | } |
35 | await addVideoChannel(server.url, server.accessToken, channel) | 27 | await server.channelsCommand.create({ attributes: channel }) |
36 | } | 28 | } |
37 | 29 | ||
38 | command = server.searchCommand | 30 | command = server.searchCommand |