I got the above error message when I ran my test. Below is my code (I\'m using Backbone JS and Jasmine for testing). Does anyone know why this happens?
$(functio
What you need in the very beginning is:
before -> sandbox = sinon.sandbox.create() afterEach -> sandbox.restore()
Then call something like:
windowSpy = sandbox.spy windowService, 'scroll'