Init test case component

This commit is contained in:
2023-11-21 14:47:25 +07:00
parent 4aae26e994
commit 04ef95754c
20 changed files with 439 additions and 8 deletions
@@ -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()
})
})