aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-26 09:48:10 +0200
committerChocobozzz <me@florianbigard.com>2018-03-26 09:48:20 +0200
commit53eb90c0ab584ee48774e15ee7c0e764cfe4559d (patch)
tree9eba75b6026f65b22083d9e3c15634074e924880 /server/tests/api
parentae09ed2c6a4d22262b02870905d16211994662b6 (diff)
downloadPeerTube-53eb90c0ab584ee48774e15ee7c0e764cfe4559d.tar.gz
PeerTube-53eb90c0ab584ee48774e15ee7c0e764cfe4559d.tar.zst
PeerTube-53eb90c0ab584ee48774e15ee7c0e764cfe4559d.zip
Fix check comments params unit tests
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/check-params/video-comments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/check-params/video-comments.ts b/server/tests/api/check-params/video-comments.ts
index 3fde9bd94..5241832fe 100644
--- a/server/tests/api/check-params/video-comments.ts
+++ b/server/tests/api/check-params/video-comments.ts
@@ -117,7 +117,7 @@ describe('Test video comments API validator', function () {
117 117
118 it('Should fail with a short comment', async function () { 118 it('Should fail with a short comment', async function () {
119 const fields = { 119 const fields = {
120 text: 'h'.repeat(3001) 120 text: ''
121 } 121 }
122 await makePostBodyRequest({ url: server.url, path: pathThread, token: server.accessToken, fields }) 122 await makePostBodyRequest({ url: server.url, path: pathThread, token: server.accessToken, fields })
123 }) 123 })
@@ -160,7 +160,7 @@ describe('Test video comments API validator', function () {
160 160
161 it('Should fail with a short comment', async function () { 161 it('Should fail with a short comment', async function () {
162 const fields = { 162 const fields = {
163 text: 'h'.repeat(3001) 163 text: ''
164 } 164 }
165 await makePostBodyRequest({ url: server.url, path: pathComment, token: server.accessToken, fields }) 165 await makePostBodyRequest({ url: server.url, path: pathComment, token: server.accessToken, fields })
166 }) 166 })