mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Add quota used in users list
This commit is contained in:
parent
614d1ae928
commit
a76138ff56
6 changed files with 44 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import * as chai from 'chai'
|
||||
import 'mocha'
|
||||
import { UserRole } from '../../../../shared/index'
|
||||
import { User, UserRole } from '../../../../shared/index'
|
||||
import {
|
||||
createUser, flushTests, getBlacklistedVideosList, getMyUserInformation, getMyUserVideoQuotaUsed, getMyUserVideoRating,
|
||||
getUserInformation, getUsersList, getUsersListPaginationAndSort, getVideosList, killallServers, login, makePutBodyRequest, rateVideo,
|
||||
|
@ -192,6 +192,12 @@ describe('Test users', function () {
|
|||
const data = res.body
|
||||
|
||||
expect(data.videoQuotaUsed).to.equal(218910)
|
||||
|
||||
const resUsers = await getUsersList(server.url, server.accessToken)
|
||||
|
||||
const users: User[] = resUsers.body.data
|
||||
const tmpUser = users.find(u => u.username === user.username)
|
||||
expect(tmpUser.videoQuotaUsed).to.equal(218910)
|
||||
})
|
||||
|
||||
it('Should be able to list my videos', async function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue