Skip to content

Commit

Permalink
chore(types): add test for rendering SVG elements
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmccurdy committed Nov 19, 2020
1 parent 1dc33b2 commit 307bd41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/test.tsx
Expand Up @@ -44,6 +44,15 @@ export function testRenderOptions() {
render(<div />, options)
}

export function testSVGRenderOptions() {
const container = document.createElementNS(
'http://www.w3.org/2000/svg',
'svg',
)
const options = {container}
render(<svg />, options)
}

export function testFireEvent() {
const {container} = render(<button />)
fireEvent.click(container)
Expand Down

0 comments on commit 307bd41

Please sign in to comment.