aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/views.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/views.ts')
-rw-r--r--server/tests/api/check-params/views.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/check-params/views.ts b/server/tests/api/check-params/views.ts
index 8f1fa796b..9bf1ef6c3 100644
--- a/server/tests/api/check-params/views.ts
+++ b/server/tests/api/check-params/views.ts
@@ -64,12 +64,12 @@ describe('Test videos views', function () {
64 }) 64 })
65 65
66 it('Should fail without token', async function () { 66 it('Should fail without token', async function () {
67 await servers[0].videoStats.getOverallStats({ videoId: videoId, token: null, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 }) 67 await servers[0].videoStats.getOverallStats({ videoId, token: null, expectedStatus: HttpStatusCode.UNAUTHORIZED_401 })
68 }) 68 })
69 69
70 it('Should fail with another token', async function () { 70 it('Should fail with another token', async function () {
71 await servers[0].videoStats.getOverallStats({ 71 await servers[0].videoStats.getOverallStats({
72 videoId: videoId, 72 videoId,
73 token: userAccessToken, 73 token: userAccessToken,
74 expectedStatus: HttpStatusCode.FORBIDDEN_403 74 expectedStatus: HttpStatusCode.FORBIDDEN_403
75 }) 75 })
@@ -114,7 +114,7 @@ describe('Test videos views', function () {
114 114
115 it('Should fail without token', async function () { 115 it('Should fail without token', async function () {
116 await servers[0].videoStats.getTimeserieStats({ 116 await servers[0].videoStats.getTimeserieStats({
117 videoId: videoId, 117 videoId,
118 token: null, 118 token: null,
119 metric: 'viewers', 119 metric: 'viewers',
120 expectedStatus: HttpStatusCode.UNAUTHORIZED_401 120 expectedStatus: HttpStatusCode.UNAUTHORIZED_401
@@ -123,7 +123,7 @@ describe('Test videos views', function () {
123 123
124 it('Should fail with another token', async function () { 124 it('Should fail with another token', async function () {
125 await servers[0].videoStats.getTimeserieStats({ 125 await servers[0].videoStats.getTimeserieStats({
126 videoId: videoId, 126 videoId,
127 token: userAccessToken, 127 token: userAccessToken,
128 metric: 'viewers', 128 metric: 'viewers',
129 expectedStatus: HttpStatusCode.FORBIDDEN_403 129 expectedStatus: HttpStatusCode.FORBIDDEN_403
@@ -198,7 +198,7 @@ describe('Test videos views', function () {
198 198
199 it('Should fail without token', async function () { 199 it('Should fail without token', async function () {
200 await servers[0].videoStats.getRetentionStats({ 200 await servers[0].videoStats.getRetentionStats({
201 videoId: videoId, 201 videoId,
202 token: null, 202 token: null,
203 expectedStatus: HttpStatusCode.UNAUTHORIZED_401 203 expectedStatus: HttpStatusCode.UNAUTHORIZED_401
204 }) 204 })
@@ -206,7 +206,7 @@ describe('Test videos views', function () {
206 206
207 it('Should fail with another token', async function () { 207 it('Should fail with another token', async function () {
208 await servers[0].videoStats.getRetentionStats({ 208 await servers[0].videoStats.getRetentionStats({
209 videoId: videoId, 209 videoId,
210 token: userAccessToken, 210 token: userAccessToken,
211 expectedStatus: HttpStatusCode.FORBIDDEN_403 211 expectedStatus: HttpStatusCode.FORBIDDEN_403
212 }) 212 })