0

how to create unit test for function click on button like this enter image description here

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

enter image description here

  • Don't post code as images, post it as plain text. Please provide a [mvce](https://stackoverflow.com/help/minimal-reproducible-example) – Lin Du Aug 19 '22 at 03:02
  • Please provide code samples as text instead of images. This way, they are not searchable and no one can c/p to try your examples. – ph0enix Aug 19 '22 at 10:32

0 Answers0