Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Last active August 9, 2017 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/1ef4d72315dd8cfa7d0890534967dd2c to your computer and use it in GitHub Desktop.
Save gdyrrahitis/1ef4d72315dd8cfa7d0890534967dd2c to your computer and use it in GitHub Desktop.
Jasmine async test
it("should terminate successfully", (done) => {
myPromise.then((value) => {
// assert the value
done(); // Terminates the test
});
myPromise.resolve();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment