Created
June 11, 2017 15:54
-
-
Save patarkf/b8c1ef5625d5a93a59129cb38a80e36e to your computer and use it in GitHub Desktop.
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
const assert = require('assert'); | |
test('Testing async code', () => { | |
getAsyncResult() // A | |
.then(first => { | |
assert.strictEqual(first, 'foo'); // B | |
return getAsyncResult2(); | |
}) | |
.then(second => { | |
assert.strictEqual(second, 'bar'); // C | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment