aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/single-server.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-30 09:21:11 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-30 09:21:11 +0100
commit1f3e9feca2caf68024168b0ea9ed39d8438fa235 (patch)
treeb77b02d11796cf435496fd22b85c430a7ed2479f /server/tests/api/single-server.ts
parent86d13ec2aa94ec10810ddf9c8b33314bd4968791 (diff)
downloadPeerTube-1f3e9feca2caf68024168b0ea9ed39d8438fa235.tar.gz
PeerTube-1f3e9feca2caf68024168b0ea9ed39d8438fa235.tar.zst
PeerTube-1f3e9feca2caf68024168b0ea9ed39d8438fa235.zip
Better view counter
Diffstat (limited to 'server/tests/api/single-server.ts')
-rw-r--r--server/tests/api/single-server.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/single-server.ts b/server/tests/api/single-server.ts
index 40e2c64fe..041d13225 100644
--- a/server/tests/api/single-server.ts
+++ b/server/tests/api/single-server.ts
@@ -33,6 +33,7 @@ import {
33 searchVideoWithSort, 33 searchVideoWithSort,
34 updateVideo 34 updateVideo
35} from '../utils' 35} from '../utils'
36import { viewVideo } from '../utils/videos'
36 37
37describe('Test a single server', function () { 38describe('Test a single server', function () {
38 let server: ServerInfo = null 39 let server: ServerInfo = null
@@ -214,6 +215,10 @@ describe('Test a single server', function () {
214 }) 215 })
215 216
216 it('Should have the views updated', async function () { 217 it('Should have the views updated', async function () {
218 await viewVideo(server.url, videoId)
219 await viewVideo(server.url, videoId)
220 await viewVideo(server.url, videoId)
221
217 const res = await getVideo(server.url, videoId) 222 const res = await getVideo(server.url, videoId)
218 223
219 const video = res.body 224 const video = res.body