test this.props in a react component method code example Example: test one function in react class expect(wrapper.instance().checkBoxChecked()).equals(true);