mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
import React from 'react'
|
|
import ReactDOM from 'react-dom'
|
|
import Button from './Button'
|
|
|
|
it('Button renders without crashing', () => {
|
|
const div = document.createElement('div')
|
|
ReactDOM.render(
|
|
<>
|
|
<Button>I am a button</Button>
|
|
<Button primary>I am a primary button</Button>
|
|
<Button href="https://hello.com">I am a button</Button>
|
|
</>,
|
|
div
|
|
)
|
|
ReactDOM.unmountComponentAtNode(div)
|
|
})
|