Created
February 6, 2017 09:35
-
-
Save vnglst/83dfd0d750e8e681e6b790701583e67c 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
/* eslint-env jest */ | |
const github = require('../github') | |
// A simple example test | |
describe('#getUser() using Promises', () => { | |
it('should load user data', () => { | |
return github.getUser('vnglst') | |
.then(data => { | |
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