How can I get this test to pass without resorting to runs/waitsFor blocks?
it(\"cannot change timeout\", function(done) { request(\"http://localhost:30
Why not by spying on setTimeout()?
setTimeout()
Something like:
var spy = spyOn(window, 'setTimeout').andCallFake(function (func, timeout) { expect(timeout).toEqual(2500); func(); }); setTimeOut(function () { ... }, 2500); expect(spy).toHaveBeenCalled();