Skip to content

Instantly share code, notes, and snippets.

@vnglst
Created February 6, 2017 09:49
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 vnglst/91b4b2fbdbedfcb70ed1327e4716df55 to your computer and use it in GitHub Desktop.
Save vnglst/91b4b2fbdbedfcb70ed1327e4716df55 to your computer and use it in GitHub Desktop.
// 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