diff options
Diffstat (limited to 'server/tests/api/check-params/video-channels.ts')
-rw-r--r-- | server/tests/api/check-params/video-channels.ts | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts index 56b990be6..5080af2c9 100644 --- a/server/tests/api/check-params/video-channels.ts +++ b/server/tests/api/check-params/video-channels.ts | |||
@@ -7,7 +7,8 @@ import { | |||
7 | createUser, | 7 | createUser, |
8 | deleteVideoChannel, | 8 | deleteVideoChannel, |
9 | flushTests, | 9 | flushTests, |
10 | getAccountVideoChannelsList, getMyUserInformation, | 10 | getAccountVideoChannelsList, |
11 | getMyUserInformation, | ||
11 | getVideoChannelsList, | 12 | getVideoChannelsList, |
12 | immutableAssign, | 13 | immutableAssign, |
13 | killallServers, | 14 | killallServers, |
@@ -20,7 +21,6 @@ import { | |||
20 | userLogin | 21 | userLogin |
21 | } from '../../utils' | 22 | } from '../../utils' |
22 | import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params' | 23 | import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params' |
23 | import { getAccountsList } from '../../utils/users/accounts' | ||
24 | import { User } from '../../../../shared/models/users' | 24 | import { User } from '../../../../shared/models/users' |
25 | 25 | ||
26 | const expect = chai.expect | 26 | const expect = chai.expect |
@@ -74,12 +74,8 @@ describe('Test video channels API validator', function () { | |||
74 | }) | 74 | }) |
75 | 75 | ||
76 | describe('When listing account video channels', function () { | 76 | describe('When listing account video channels', function () { |
77 | it('Should fail with bad account', async function () { | ||
78 | await getAccountVideoChannelsList(server.url, 'hello', 400) | ||
79 | }) | ||
80 | |||
81 | it('Should fail with a unknown account', async function () { | 77 | it('Should fail with a unknown account', async function () { |
82 | await getAccountVideoChannelsList(server.url, 154, 404) | 78 | await getAccountVideoChannelsList(server.url, 'unknown', 404) |
83 | }) | 79 | }) |
84 | }) | 80 | }) |
85 | 81 | ||