Created
September 28, 2017 21:01
-
-
Save alonronin/e66077d565457fb1a82e5b1360b36534 to your computer and use it in GitHub Desktop.
Jest async await 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
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