Skip to content

Commit 307bd41

Browse files
committed
chore(types): add test for rendering SVG elements
1 parent 1dc33b2 commit 307bd41

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

types/test.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ export function testRenderOptions() {
4444
render(<div />, options)
4545
}
4646

47+
export function testSVGRenderOptions() {
48+
const container = document.createElementNS(
49+
'http://www.w3.org/2000/svg',
50+
'svg',
51+
)
52+
const options = {container}
53+
render(<svg />, options)
54+
}
55+
4756
export function testFireEvent() {
4857
const {container} = render(<button />)
4958
fireEvent.click(container)

0 commit comments

Comments
 (0)