Skip to content

Instantly share code, notes, and snippets.

@alonronin
Created September 28, 2017 21:01
Show Gist options
  • Save alonronin/e66077d565457fb1a82e5b1360b36534 to your computer and use it in GitHub Desktop.
Save alonronin/e66077d565457fb1a82e5b1360b36534 to your computer and use it in GitHub Desktop.
Jest async await test
const myPromise = () => Promise.resolve('ok');
describe('Async - Await Test', () => {
test('Async', async () => {
expect(await myPromise()).toBe('ok');
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment