Skip to content

Commit

Permalink
🧪 Clean webp from end-to-end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkoch committed Jan 18, 2025
1 parent 0b5c806 commit bb13b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mystmd/tests/endToEnd.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ function resolve(relative: string) {

function cleanHashes(text: string) {
return text
.replace(/\/image-[a-f0-9]{32}\.webp/g, '')
.replace(/"urlOptimized":\s*"\/image-[a-f0-9]{32}\.webp",/g, '')
.replace(/"thumbnailOptimized":\s*"\/image-[a-f0-9]{32}\.webp",/g, '')
.replace(/-[a-f0-9]{32}\./g, '.')
.replace(/"key":\s*"[a-zA-Z0-9]{10}"/g, '"key": "keyABC0123"');
}
Expand Down

0 comments on commit bb13b52

Please sign in to comment.