aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos/videos-overview.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-07 16:02:46 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commit5f8bd4cbb178290da7d8f81e996f19f0eccc8e4c (patch)
tree02d056121540652b0867fc2ef56699138afe6271 /server/tests/api/videos/videos-overview.ts
parent9fff08cf83f34339df7ed4ac770e1dee536adf9d (diff)
downloadPeerTube-5f8bd4cbb178290da7d8f81e996f19f0eccc8e4c.tar.gz
PeerTube-5f8bd4cbb178290da7d8f81e996f19f0eccc8e4c.tar.zst
PeerTube-5f8bd4cbb178290da7d8f81e996f19f0eccc8e4c.zip
Introduce blocklist command
Diffstat (limited to 'server/tests/api/videos/videos-overview.ts')
-rw-r--r--server/tests/api/videos/videos-overview.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/videos/videos-overview.ts b/server/tests/api/videos/videos-overview.ts
index b3ab9e070..ccbc6f4a4 100644
--- a/server/tests/api/videos/videos-overview.ts
+++ b/server/tests/api/videos/videos-overview.ts
@@ -3,7 +3,6 @@
3import 'mocha' 3import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { 5import {
6 addAccountToAccountBlocklist,
7 cleanupTests, 6 cleanupTests,
8 flushAndRunServer, 7 flushAndRunServer,
9 generateUserAccessToken, 8 generateUserAccessToken,
@@ -115,7 +114,7 @@ describe('Test a videos overview', function () {
115 it('Should hide muted accounts', async function () { 114 it('Should hide muted accounts', async function () {
116 const token = await generateUserAccessToken(server, 'choco') 115 const token = await generateUserAccessToken(server, 'choco')
117 116
118 await addAccountToAccountBlocklist(server.url, token, 'root@' + server.host) 117 await server.blocklistCommand.addToMyBlocklist({ token, account: 'root@' + server.host })
119 118
120 { 119 {
121 const body = await server.overviewsCommand.getVideos({ page: 1 }) 120 const body = await server.overviewsCommand.getVideos({ page: 1 })