]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/check-params/video-comments.ts
Move utils to /shared
[github/Chocobozzz/PeerTube.git] / server / tests / api / check-params / video-comments.ts
index 3fde9bd947f8e6c272f6449da7cf52fe6654e9f9..5981780ede0409bc8cf74c357ddb15263e0519a2 100644 (file)
@@ -6,9 +6,13 @@ import {
   createUser,
   flushTests, killallServers, makeDeleteRequest, makeGetRequest, makePostBodyRequest, runServer, ServerInfo, setAccessTokensToServers,
   uploadVideo, userLogin
-} from '../../utils'
-import { checkBadCountPagination, checkBadSortPagination, checkBadStartPagination } from '../../utils/requests/check-api-params'
-import { addVideoCommentThread } from '../../utils/videos/video-comments'
+} from '../../../../shared/utils'
+import {
+  checkBadCountPagination,
+  checkBadSortPagination,
+  checkBadStartPagination
+} from '../../../../shared/utils/requests/check-api-params'
+import { addVideoCommentThread } from '../../../../shared/utils/videos/video-comments'
 
 const expect = chai.expect
 
@@ -117,7 +121,7 @@ describe('Test video comments API validator', function () {
 
     it('Should fail with a short comment', async function () {
       const fields = {
-        text: 'h'.repeat(3001)
+        text: ''
       }
       await makePostBodyRequest({ url: server.url, path: pathThread, token: server.accessToken, fields })
     })
@@ -160,7 +164,7 @@ describe('Test video comments API validator', function () {
 
     it('Should fail with a short comment', async function () {
       const fields = {
-        text: 'h'.repeat(3001)
+        text: ''
       }
       await makePostBodyRequest({ url: server.url, path: pathComment, token: server.accessToken, fields })
     })