Created
February 6, 2017 09:49
-
-
Save vnglst/91b4b2fbdbedfcb70ed1327e4716df55 to your computer and use it in GitHub Desktop.
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
// The exact same test using async/await | |
describe('#getUser() using async/await', () => { | |
it('should load user data', async () => { | |
const data = await github.getUser('vnglst') | |
expect(data).toBeDefined() | |
expect(data.entity.name).toEqual('Koen van Gilst') | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment