-
-
Save gdyrrahitis/1ef4d72315dd8cfa7d0890534967dd2c to your computer and use it in GitHub Desktop.
Jasmine async test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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