diff options
Diffstat (limited to 'server/tests/api/check-params/users.ts')
-rw-r--r-- | server/tests/api/check-params/users.ts | 6 |
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, |