diff options
Diffstat (limited to 'server/tests/api/users/users.ts')
-rw-r--r-- | server/tests/api/users/users.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts index 77aa00f60..04dcc8fd1 100644 --- a/server/tests/api/users/users.ts +++ b/server/tests/api/users/users.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { UserRole } from '../../../../shared/index' | 5 | import { User, UserRole } from '../../../../shared/index' |
6 | import { | 6 | import { |
7 | createUser, flushTests, getBlacklistedVideosList, getMyUserInformation, getMyUserVideoQuotaUsed, getMyUserVideoRating, | 7 | createUser, flushTests, getBlacklistedVideosList, getMyUserInformation, getMyUserVideoQuotaUsed, getMyUserVideoRating, |
8 | getUserInformation, getUsersList, getUsersListPaginationAndSort, getVideosList, killallServers, login, makePutBodyRequest, rateVideo, | 8 | getUserInformation, getUsersList, getUsersListPaginationAndSort, getVideosList, killallServers, login, makePutBodyRequest, rateVideo, |
@@ -192,6 +192,12 @@ describe('Test users', function () { | |||
192 | const data = res.body | 192 | const data = res.body |
193 | 193 | ||
194 | expect(data.videoQuotaUsed).to.equal(218910) | 194 | expect(data.videoQuotaUsed).to.equal(218910) |
195 | |||
196 | const resUsers = await getUsersList(server.url, server.accessToken) | ||
197 | |||
198 | const users: User[] = resUsers.body.data | ||
199 | const tmpUser = users.find(u => u.username === user.username) | ||
200 | expect(tmpUser.videoQuotaUsed).to.equal(218910) | ||
195 | }) | 201 | }) |
196 | 202 | ||
197 | it('Should be able to list my videos', async function () { | 203 | it('Should be able to list my videos', async function () { |