Skip to content

Instantly share code, notes, and snippets.

@ricca509
Created February 20, 2017 22:55
Show Gist options
  • Save ricca509/7e5b6f77e2915dc0417ca0d4716e3ca0 to your computer and use it in GitHub Desktop.
Save ricca509/7e5b6f77e2915dc0417ca0d4716e3ca0 to your computer and use it in GitHub Desktop.
snapshot-api-handler
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