aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-03 11:36:03 +0100
committerChocobozzz <me@florianbigard.com>2018-01-03 11:36:03 +0100
commite8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf (patch)
treec29952bef32c5e95c9409724f12d902dcdd8d39e /server/tests
parent01de67b9a4fcdf01102ccc3cb7dc24beebf6c7ea (diff)
downloadPeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.tar.gz
PeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.tar.zst
PeerTube-e8e122002d5a6a2bedcf3d66d35657c9b9e1ebaf.zip
Automatically resize avatars
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/fixtures/avatar-resized.pngbin0 -> 2420 bytes
-rw-r--r--server/tests/api/users/users.ts2
2 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/api/fixtures/avatar-resized.png b/server/tests/api/fixtures/avatar-resized.png
new file mode 100644
index 000000000..e05fc07ce
--- /dev/null
+++ b/server/tests/api/fixtures/avatar-resized.png
Binary files differ
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts
index 3390b2d56..f7e5972d3 100644
--- a/server/tests/api/users/users.ts
+++ b/server/tests/api/users/users.ts
@@ -352,7 +352,7 @@ describe('Test users', function () {
352 const res = await getMyUserInformation(server.url, accessTokenUser) 352 const res = await getMyUserInformation(server.url, accessTokenUser)
353 const user = res.body 353 const user = res.body
354 354
355 const test = await testVideoImage(server.url, 'avatar', user.account.avatar.path, '.png') 355 const test = await testVideoImage(server.url, 'avatar-resized', user.account.avatar.path, '.png')
356 expect(test).to.equal(true) 356 expect(test).to.equal(true)
357 }) 357 })
358 358