Skip to content

Instantly share code, notes, and snippets.

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