Skip to content

Instantly share code, notes, and snippets.

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