Skip to content

Instantly share code, notes, and snippets.

@gillesdemey
Last active February 20, 2018 12:58
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 gillesdemey/7bf1391f4a66828246f34650ede71be3 to your computer and use it in GitHub Desktop.
Save gillesdemey/7bf1391f4a66828246f34650ede71be3 to your computer and use it in GitHub Desktop.
snapshot-user.json.snap
const app = require('./app')
const request = require('supertest')
test('get a user', async () => {
const response = await request(app)
.get('/users/1')
expect(response.status).toBe(200)
expect(response).toMatchSnapshot()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment