diff options
author | Chocobozzz <me@florianbigard.com> | 2023-06-06 11:14:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-06-29 10:19:05 +0200 |
commit | c37e305342c8655325f9606aa1f4b29abc471b39 (patch) | |
tree | 7d0529c0895c0522de9e77c8ab4d48e502599d2c /server/tests/helpers | |
parent | 881958d17902b1efbb184400d7e5030cfc5b7224 (diff) | |
download | PeerTube-c37e305342c8655325f9606aa1f4b29abc471b39.tar.gz PeerTube-c37e305342c8655325f9606aa1f4b29abc471b39.tar.zst PeerTube-c37e305342c8655325f9606aa1f4b29abc471b39.zip |
Fix CI tests
Diffstat (limited to 'server/tests/helpers')
-rw-r--r-- | server/tests/helpers/image.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/helpers/image.ts b/server/tests/helpers/image.ts index 530c9bacd..6021ffc48 100644 --- a/server/tests/helpers/image.ts +++ b/server/tests/helpers/image.ts | |||
@@ -35,28 +35,28 @@ describe('Image helpers', function () { | |||
35 | const thumbnailSize = { width: 280, height: 157 } | 35 | const thumbnailSize = { width: 280, height: 157 } |
36 | 36 | ||
37 | it('Should skip processing if the source image is okay', async function () { | 37 | it('Should skip processing if the source image is okay', async function () { |
38 | const input = buildAbsoluteFixturePath('thumbnail.jpg') | 38 | const input = buildAbsoluteFixturePath('custom-thumbnail.jpg') |
39 | await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true }) | 39 | await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true }) |
40 | 40 | ||
41 | await checkBuffers(input, imageDestJPG, true) | 41 | await checkBuffers(input, imageDestJPG, true) |
42 | }) | 42 | }) |
43 | 43 | ||
44 | it('Should not skip processing if the source image does not have the appropriate extension', async function () { | 44 | it('Should not skip processing if the source image does not have the appropriate extension', async function () { |
45 | const input = buildAbsoluteFixturePath('thumbnail.png') | 45 | const input = buildAbsoluteFixturePath('custom-thumbnail.png') |
46 | await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true }) | 46 | await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true }) |
47 | 47 | ||
48 | await checkBuffers(input, imageDestJPG, false) | 48 | await checkBuffers(input, imageDestJPG, false) |
49 | }) | 49 | }) |
50 | 50 | ||
51 | it('Should not skip processing if the source image does not have the appropriate size', async function () { | 51 | it('Should not skip processing if the source image does not have the appropriate size', async function () { |
52 | const input = buildAbsoluteFixturePath('preview.jpg') | 52 | const input = buildAbsoluteFixturePath('custom-preview.jpg') |
53 | await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true }) | 53 | await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true }) |
54 | 54 | ||
55 | await checkBuffers(input, imageDestJPG, false) | 55 | await checkBuffers(input, imageDestJPG, false) |
56 | }) | 56 | }) |
57 | 57 | ||
58 | it('Should not skip processing if the source image does not have the appropriate size', async function () { | 58 | it('Should not skip processing if the source image does not have the appropriate size', async function () { |
59 | const input = buildAbsoluteFixturePath('thumbnail-big.jpg') | 59 | const input = buildAbsoluteFixturePath('custom-thumbnail-big.jpg') |
60 | await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true }) | 60 | await processImage({ path: input, destination: imageDestJPG, newSize: thumbnailSize, keepOriginal: true }) |
61 | 61 | ||
62 | await checkBuffers(input, imageDestJPG, false) | 62 | await checkBuffers(input, imageDestJPG, false) |