Fix tests

This commit is contained in:
Chocobozzz 2018-05-09 13:49:50 +02:00
parent a10fc78bb0
commit 9419b01352
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 6 additions and 6 deletions

View File

@ -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 })
})

View File

@ -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 })
})