update goods
This commit is contained in:
@@ -47,8 +47,8 @@ describe('OptimizedImage', () => {
|
||||
.closest('picture')
|
||||
?.querySelector('source[type="image/avif"]') as HTMLSourceElement
|
||||
const srcSet = avifSource?.getAttribute('srcset') ?? ''
|
||||
expect(srcSet).toContain('?w=200')
|
||||
expect(srcSet).toContain('?w=400')
|
||||
expect(srcSet).not.toContain('?w=640')
|
||||
expect(srcSet).toContain('?w=320')
|
||||
expect(srcSet).toContain('?w=640')
|
||||
expect(srcSet).not.toContain('?w=1024')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user