Increase video comments limit

pull/2737/head
Chocobozzz 2020-05-05 16:48:30 +02:00
parent 4c576aca1c
commit 298b3fd315
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 3 additions and 3 deletions

View File

@ -283,7 +283,7 @@ const CONSTRAINTS_FIELDS = {
COUNT: { min: 0 }
},
VIDEO_COMMENTS: {
TEXT: { min: 1, max: 3000 }, // Length
TEXT: { min: 1, max: 10000 }, // Length
URL: { min: 3, max: 2000 } // Length
},
VIDEO_SHARE: {

View File

@ -133,7 +133,7 @@ describe('Test video comments API validator', function () {
it('Should fail with a long comment', async function () {
const fields = {
text: 'h'.repeat(3001)
text: 'h'.repeat(10001)
}
await makePostBodyRequest({ url: server.url, path: pathThread, token: server.accessToken, fields })
})
@ -176,7 +176,7 @@ describe('Test video comments API validator', function () {
it('Should fail with a long comment', async function () {
const fields = {
text: 'h'.repeat(3001)
text: 'h'.repeat(10001)
}
await makePostBodyRequest({ url: server.url, path: pathComment, token: server.accessToken, fields })
})