-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
209 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.53 KB
test/__snapshots__/e2e/external_accept_all_w-2048_q-75_avif_test.avif.avif
Binary file not shown.
File renamed without changes.
Binary file added
BIN
+1.25 KB
test/__snapshots__/e2e/external_accept_webp_w-2048_q-75_avif_test.avif.webp
Binary file not shown.
Binary file added
BIN
+1.53 KB
test/__snapshots__/e2e/internal_accept_all_w-2048_q-75_avif_test.avif.avif
Binary file not shown.
File renamed without changes.
Binary file added
BIN
+1.25 KB
test/__snapshots__/e2e/internal_accept_webp_w-2048_q-75_avif_test.avif.webp
Binary file not shown.
Binary file added
BIN
+1.53 KB
test/__snapshots__/external_accept_all_w-2048_q-75_avif_test.avif.avif
Binary file not shown.
File renamed without changes.
Binary file added
BIN
+1.25 KB
test/__snapshots__/external_accept_webp_w-2048_q-75_avif_test.avif.webp
Binary file not shown.
Binary file added
BIN
+1.53 KB
test/__snapshots__/internal_accept_all_w-2048_q-75_avif_test.avif.avif
Binary file not shown.
File renamed without changes.
Binary file added
BIN
+1.25 KB
test/__snapshots__/internal_accept_webp_w-2048_q-75_avif_test.avif.webp
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
interface FixtureResponse { | ||
ext: string; | ||
'content-type': string; | ||
} | ||
type Fixture = [string, FixtureResponse]; | ||
// inputFilename | outputContentType | ||
type Fixture = [string, string]; | ||
|
||
export const acceptAllFixtures: Fixture[] = [ | ||
[ | ||
'bmp/test.bmp', | ||
{ | ||
ext: 'bmp', | ||
'content-type': 'image/bmp', | ||
}, | ||
], | ||
['gif/test.gif', { ext: 'gif', 'content-type': 'image/gif' }], | ||
['jpeg/test.jpg', { ext: 'jpeg', 'content-type': 'image/jpeg' }], | ||
['png/test.png', { ext: 'png', 'content-type': 'image/png' }], | ||
['svg/test.svg', { ext: 'svg', 'content-type': 'image/svg+xml' }], | ||
['tiff/test.tiff', { ext: 'tiff', 'content-type': 'image/tiff' }], | ||
['webp/test.webp', { ext: 'webp', 'content-type': 'image/webp' }], | ||
['webp/animated.webp', { ext: 'webp', 'content-type': 'image/webp' }], | ||
// inputFilename | outputContentType | ||
['avif/test.avif', 'image/avif'], | ||
['bmp/test.bmp', 'image/bmp'], | ||
['gif/test.gif', 'image/gif'], | ||
['jpeg/test.jpg', 'image/jpeg'], | ||
['png/test.png', 'image/png'], | ||
['svg/test.svg', 'image/svg+xml'], | ||
['tiff/test.tiff', 'image/tiff'], | ||
['webp/test.webp', 'image/webp'], | ||
['webp/animated.webp', 'image/webp'], | ||
]; | ||
|
||
export const acceptWebpFixtures: Fixture[] = [ | ||
[ | ||
'bmp/test.bmp', | ||
{ | ||
ext: 'bmp', | ||
'content-type': 'image/bmp', | ||
}, | ||
], | ||
['gif/test.gif', { ext: 'webp', 'content-type': 'image/webp' }], | ||
['jpeg/test.jpg', { ext: 'webp', 'content-type': 'image/webp' }], | ||
['png/test.png', { ext: 'webp', 'content-type': 'image/webp' }], | ||
['svg/test.svg', { ext: 'svg', 'content-type': 'image/svg+xml' }], | ||
['tiff/test.tiff', { ext: 'webp', 'content-type': 'image/webp' }], | ||
['webp/test.webp', { ext: 'webp', 'content-type': 'image/webp' }], | ||
['webp/animated.webp', { ext: 'webp', 'content-type': 'image/webp' }], | ||
// inputFilename | outputContentType | ||
['avif/test.avif', 'image/webp'], | ||
['bmp/test.bmp', 'image/bmp'], | ||
['gif/test.gif', 'image/webp'], | ||
['jpeg/test.jpg', 'image/webp'], | ||
['png/test.png', 'image/webp'], | ||
['svg/test.svg', 'image/svg+xml'], | ||
['tiff/test.tiff', 'image/webp'], | ||
['webp/test.webp', 'image/webp'], | ||
['webp/animated.webp', 'image/webp'], | ||
]; | ||
|
||
export const acceptAvifFixtures: Fixture[] = [ | ||
// inputFilename | outputContentType | ||
['avif/test.avif', 'image/avif'], | ||
['bmp/test.bmp', 'image/bmp'], | ||
['gif/test.gif', 'image/avif'], | ||
['jpeg/test.jpg', 'image/avif'], | ||
['png/test.png', 'image/avif'], | ||
['svg/test.svg', 'image/svg+xml'], | ||
['tiff/test.tiff', 'image/avif'], | ||
['webp/test.webp', 'image/avif'], | ||
['webp/animated.webp', 'image/webp'], | ||
]; |
Oops, something went wrong.