1
0
Fork 0
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:
Chocobozzz 2018-08-14 17:56:51 +02:00
parent 614d1ae928
commit a76138ff56
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 44 additions and 10 deletions

View file

@ -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 () {