diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/check-params/videos.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/api/check-params/videos.ts b/server/tests/api/check-params/videos.ts index abbea6ba3..7fce8ba7c 100644 --- a/server/tests/api/check-params/videos.ts +++ b/server/tests/api/check-params/videos.ts | |||
@@ -326,7 +326,7 @@ describe('Test videos API validator', function () { | |||
326 | const fields = baseCorrectParams | 326 | const fields = baseCorrectParams |
327 | const attaches = { | 327 | const attaches = { |
328 | 'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'), | 328 | 'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'), |
329 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm') | 329 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4') |
330 | } | 330 | } |
331 | 331 | ||
332 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 332 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
@@ -336,7 +336,7 @@ describe('Test videos API validator', function () { | |||
336 | const fields = baseCorrectParams | 336 | const fields = baseCorrectParams |
337 | const attaches = { | 337 | const attaches = { |
338 | 'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'), | 338 | 'thumbnailfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'), |
339 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm') | 339 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4') |
340 | } | 340 | } |
341 | 341 | ||
342 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 342 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
@@ -346,7 +346,7 @@ describe('Test videos API validator', function () { | |||
346 | const fields = baseCorrectParams | 346 | const fields = baseCorrectParams |
347 | const attaches = { | 347 | const attaches = { |
348 | 'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'), | 348 | 'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png'), |
349 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm') | 349 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4') |
350 | } | 350 | } |
351 | 351 | ||
352 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 352 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |
@@ -356,7 +356,7 @@ describe('Test videos API validator', function () { | |||
356 | const fields = baseCorrectParams | 356 | const fields = baseCorrectParams |
357 | const attaches = { | 357 | const attaches = { |
358 | 'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'), | 358 | 'previewfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png'), |
359 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short_fake.webm') | 359 | 'videofile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4') |
360 | } | 360 | } |
361 | 361 | ||
362 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) | 362 | await makeUploadRequest({ url: server.url, path: path + '/upload', token: server.accessToken, fields, attaches }) |