// 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