author avatar

harshwardhan

Thu May 17 2018

while tesing with enzyme if you are unit testing your component method with component.instance().methodName() always double check if the method that you are testing have access to "this" variable manually. Currently even if it does not have "this" access the test will pass