Skip to content

Commit fcc9b7a

Browse files
committed
test: ensure <img> is rendered with custom format
1 parent 7ca114e commit fcc9b7a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/unit/picture.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,14 @@ describe('Renders simple image', () => {
106106
</picture>"
107107
`)
108108
})
109+
110+
it('renders <img> with custom format', () => {
111+
const img = mount(NuxtPicture, {
112+
propsData: {
113+
format: 'avif',
114+
src: '/test.png'
115+
}
116+
})
117+
expect(img.find('img').exists()).toBe(true)
118+
})
109119
})

0 commit comments

Comments
 (0)