Skip to content

Instantly share code, notes, and snippets.

@techiediaries
Created September 25, 2018 19:58
Show Gist options
  • Select an option

  • Save techiediaries/1fc9207357add6f04c232f9d9c127f4b to your computer and use it in GitHub Desktop.

Select an option

Save techiediaries/1fc9207357add6f04c232f9d9c127f4b to your computer and use it in GitHub Desktop.
describe("/Async Op", function () {
var asyncOpCompleted = false;
beforeEach(function (done) {
utils.simulateAsyncOp(function(){
asyncOpCompleted = true;
done();
});
});
it("should be able to tell if the async call has completed", function () {
expect(asyncOpCompleted).toEqual(true);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment