aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/users.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-07 09:48:10 +0200
committerChocobozzz <me@florianbigard.com>2018-06-07 09:57:35 +0200
commit99d103019c76c517ba607a0fab8022aa6d08ef2e (patch)
tree7132bede03e32ab27d0f43de024b2080b473454f /server/tests/api/check-params/users.ts
parent28be89161aab245526d64f6fb7dd29391a97fe0a (diff)
downloadPeerTube-99d103019c76c517ba607a0fab8022aa6d08ef2e.tar.gz
PeerTube-99d103019c76c517ba607a0fab8022aa6d08ef2e.tar.zst
PeerTube-99d103019c76c517ba607a0fab8022aa6d08ef2e.zip
Move fixtures in tests/
Diffstat (limited to 'server/tests/api/check-params/users.ts')
-rw-r--r--server/tests/api/check-params/users.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts
index e8a6ffd19..dba57778d 100644
--- a/server/tests/api/check-params/users.ts
+++ b/server/tests/api/check-params/users.ts
@@ -279,7 +279,7 @@ describe('Test users API validators', function () {
279 it('Should fail without an incorrect input file', async function () { 279 it('Should fail without an incorrect input file', async function () {
280 const fields = {} 280 const fields = {}
281 const attaches = { 281 const attaches = {
282 'avatarfile': join(__dirname, '..', 'fixtures', 'video_short.mp4') 282 'avatarfile': join(__dirname, '..', '..', 'fixtures', 'video_short.mp4')
283 } 283 }
284 await makeUploadRequest({ url: server.url, path: path + '/me/avatar/pick', token: server.accessToken, fields, attaches }) 284 await makeUploadRequest({ url: server.url, path: path + '/me/avatar/pick', token: server.accessToken, fields, attaches })
285 }) 285 })
@@ -287,7 +287,7 @@ describe('Test users API validators', function () {
287 it('Should fail with a big file', async function () { 287 it('Should fail with a big file', async function () {
288 const fields = {} 288 const fields = {}
289 const attaches = { 289 const attaches = {
290 'avatarfile': join(__dirname, '..', 'fixtures', 'avatar-big.png') 290 'avatarfile': join(__dirname, '..', '..', 'fixtures', 'avatar-big.png')
291 } 291 }
292 await makeUploadRequest({ url: server.url, path: path + '/me/avatar/pick', token: server.accessToken, fields, attaches }) 292 await makeUploadRequest({ url: server.url, path: path + '/me/avatar/pick', token: server.accessToken, fields, attaches })
293 }) 293 })
@@ -295,7 +295,7 @@ describe('Test users API validators', function () {
295 it('Should succeed with the correct params', async function () { 295 it('Should succeed with the correct params', async function () {
296 const fields = {} 296 const fields = {}
297 const attaches = { 297 const attaches = {
298 'avatarfile': join(__dirname, '..', 'fixtures', 'avatar.png') 298 'avatarfile': join(__dirname, '..', '..', 'fixtures', 'avatar.png')
299 } 299 }
300 await makeUploadRequest({ 300 await makeUploadRequest({
301 url: server.url, 301 url: server.url,