From 9419b01352883fd8cd57f95c59555cff6b9c7404 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 9 May 2018 13:49:50 +0200 Subject: [PATCH] Fix tests --- server/tests/api/check-params/video-channels.ts | 8 ++++---- server/tests/api/check-params/videos.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts index 40a8e97cc..56b990be6 100644 --- a/server/tests/api/check-params/video-channels.ts +++ b/server/tests/api/check-params/video-channels.ts @@ -116,12 +116,12 @@ describe('Test video channels API validator', function () { }) it('Should fail with a long description', async function () { - const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(60) }) + const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(150) }) await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields }) }) it('Should fail with a long support text', async function () { - const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(70) }) + const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(150) }) await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields }) }) @@ -173,12 +173,12 @@ describe('Test video channels API validator', function () { }) it('Should fail with a long description', async function () { - const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(60) }) + const fields = immutableAssign(baseCorrectParams, { description: 'super'.repeat(150) }) await makePutBodyRequest({ url: server.url, path, token: server.accessToken, fields }) }) it('Should fail with a long support text', async function () { - const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(70) }) + const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(150) }) await makePutBodyRequest({ url: server.url, path, token: server.accessToken, fields }) }) diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index 2b341a5b3..47fad7d5c 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts @@ -246,7 +246,7 @@ describe('Test videos API validator', function () { }) it('Should fail with a long support text', async function () { - const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(70) }) + const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(150) }) const attaches = baseCorrectAttaches await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) @@ -478,7 +478,7 @@ describe('Test videos API validator', function () { }) it('Should fail with a long support text', async function () { - const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(70) }) + const fields = immutableAssign(baseCorrectParams, { support: 'super'.repeat(150) }) await makePutBodyRequest({ url: server.url, path: path + videoId, token: server.accessToken, fields }) }) -- 2.41.0