Reactjs How To Replace Global Function While Doing Unit Test With

Reactjs How To Replace Global Function While Doing Unit Test With