Stubbing jQuery with sinon

jankapunkt

Jan Küster

Posted on August 31, 2020

Stubbing jQuery with sinon

Yes, this is rather a notice than an article but here is the thing - I wasted nearly an hour to get this done so here is it:

sinon.stub(jQuery.fn, 'init').callsFake(fn)
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
jankapunkt
Jan Küster

Posted on August 31, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Stubbing jQuery with sinon
javascript Stubbing jQuery with sinon

August 31, 2020