how to create unit test for function click on button like this
i want hit the function onClickAsCard and onClickAsList , value of view is boolean from context, how i can render button with value view true or false
how to create unit test for function click on button like this
i want hit the function onClickAsCard and onClickAsList , value of view is boolean from context, how i can render button with value view true or false