Stubbing jQuery with sinon
Jan Küster
Posted on August 31, 2020
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)
💖 💪 🙅 🚩
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.