Javascript Jasmine异步支持

Javascript Jasmine异步支持,javascript,jasmine,Javascript,Jasmine,我试图理解jasmine的新异步特性。我理解如何将可选函数传递给beforeach,在asych操作完成后应调用该函数。但是,在以下代码段中调用done的目的到底是什么: it("should support async execution of test preparation and expectations", function(done) { value++; expect(value).toBeGreaterThan(0); done(); }); 是否唯

我试图理解jasmine的新异步特性。我理解如何将可选函数传递给beforeach,在asych操作完成后应调用该函数。但是,在以下代码段中调用done的目的到底是什么:

it("should support async execution of test preparation and expectations", function(done) {
    value++;
    expect(value).toBeGreaterThan(0);
    done();
  });
是否唯一的目的是表明规范执行已完成?是否需要将done传递给函数