Created
July 11, 2015 20:03
-
-
Save ericelliott/471412e29d3d2b535988 to your computer and use it in GitHub Desktop.
blue-tape Promise API
This file contains hidden or 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
test('Greet World', (assert) => new Promise((resolve) => { | |
assert.equal(hello('World'), 'Hello, World!'); | |
setTimeout(() => { | |
// do some async stuff | |
resolve(); | |
}, 10); | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment