How do I change the timeout on a jasmine-node async spec

后端 未结 10 1931
生来不讨喜
生来不讨喜 2020-12-04 20:53

How can I get this test to pass without resorting to runs/waitsFor blocks?

it(\"cannot change timeout\", function(done) {

     request(\"http://localhost:30         


        
10条回答
  •  暖寄归人
    2020-12-04 21:05

    In Angular, put this outside your describe block:

    jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
    

    This applies to all the tests in the .spec.ts file

提交回复
热议问题