1.

When spying an original function we need to restore the original function using __________.

Answer»

When spying an original function we need to restore the original function USING __________.
Choose the CORRECT option from below list
(1)sinon.spy()
(2)object.method.restore
(3)sinon.spy(obj,'method')
(4)sinon.stub()

Answer:-(2)object.method.restore



Discussion

No Comment Found