Created
February 20, 2017 22:55
-
-
Save ricca509/7e5b6f77e2915dc0417ca0d4716e3ca0 to your computer and use it in GitHub Desktop.
snapshot-api-handler
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
import handler from '../handler'; | |
import expectedUserJson from '../mocks/user'; | |
describe('the user handler', () => { | |
it('returns the user information given its id', () => { | |
const response = handler('35409DJFJ48'); | |
expect(response).toEqual(expectedUserJson); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment