Skip to content

Instantly share code, notes, and snippets.

@techiediaries
Created October 1, 2018 23:46
Show Gist options
  • Select an option

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

Select an option

Save techiediaries/bb33cf60df0f86c35389bc3c595c2dff to your computer and use it in GitHub Desktop.
describe("/Async Op", function () {
var asyncOpCompleted = false;
beforeEach(function (done) {
utils.simulateAsyncOp().then(()=>{
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