how to test a funtion inside compenent in jest testing code example
Example: test one function in react class
expect(wrapper.instance().checkBoxChecked()).equals(true);
expect(wrapper.instance().checkBoxChecked()).equals(true);