aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-01-15 09:45:54 +0100
committerChocobozzz <me@florianbigard.com>2019-01-15 09:45:54 +0100
commit44b9c0ba31c4a97e3d874f33226ad935c3a90dd5 (patch)
treecb0b5e55ed3f8bafa439f233f43aca5c71a44515 /server/tests/api
parent3195cd1c118f5e020ab7e635d5a3dcdad2108b1a (diff)
downloadPeerTube-44b9c0ba31c4a97e3d874f33226ad935c3a90dd5.tar.gz
PeerTube-44b9c0ba31c4a97e3d874f33226ad935c3a90dd5.tar.zst
PeerTube-44b9c0ba31c4a97e3d874f33226ad935c3a90dd5.zip
Add totalLocalVideoFilesSize in stats
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/stats.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tests/api/server/stats.ts b/server/tests/api/server/stats.ts
index 517b4e542..9858e2b15 100644
--- a/server/tests/api/server/stats.ts
+++ b/server/tests/api/server/stats.ts
@@ -39,7 +39,7 @@ describe('Test stats (excluding redundancy)', function () {
39 } 39 }
40 await createUser(servers[0].url, servers[0].accessToken, user.username, user.password) 40 await createUser(servers[0].url, servers[0].accessToken, user.username, user.password)
41 41
42 const resVideo = await uploadVideo(servers[0].url, servers[0].accessToken, {}) 42 const resVideo = await uploadVideo(servers[0].url, servers[0].accessToken, { fixture: 'video_short.webm' })
43 const videoUUID = resVideo.body.video.uuid 43 const videoUUID = resVideo.body.video.uuid
44 44
45 await addVideoCommentThread(servers[0].url, servers[0].accessToken, videoUUID, 'comment') 45 await addVideoCommentThread(servers[0].url, servers[0].accessToken, videoUUID, 'comment')
@@ -60,6 +60,7 @@ describe('Test stats (excluding redundancy)', function () {
60 expect(data.totalLocalVideoComments).to.equal(1) 60 expect(data.totalLocalVideoComments).to.equal(1)
61 expect(data.totalLocalVideos).to.equal(1) 61 expect(data.totalLocalVideos).to.equal(1)
62 expect(data.totalLocalVideoViews).to.equal(1) 62 expect(data.totalLocalVideoViews).to.equal(1)
63 expect(data.totalLocalVideoFilesSize).to.equal(218910)
63 expect(data.totalUsers).to.equal(2) 64 expect(data.totalUsers).to.equal(2)
64 expect(data.totalVideoComments).to.equal(1) 65 expect(data.totalVideoComments).to.equal(1)
65 expect(data.totalVideos).to.equal(1) 66 expect(data.totalVideos).to.equal(1)