mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-23 04:19:48 +00:00
Init test case component
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import renderer from 'react-test-renderer'
|
||||
|
||||
// Components
|
||||
import ButtonIcon from '.'
|
||||
import { HiOutlineLogout } from 'react-icons/hi'
|
||||
|
||||
describe('ButtonIcon testing snapshot', () => {
|
||||
const wrapper = renderer.create(<ButtonIcon
|
||||
aria-label="Logout"
|
||||
icon={<HiOutlineLogout />}
|
||||
iconStyle={{ size: '23px' }}
|
||||
/>)
|
||||
|
||||
test('render', () => {
|
||||
expect(wrapper).toMatchSnapshot()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user