Last active
February 20, 2018 12:58
-
-
Save gillesdemey/7bf1391f4a66828246f34650ede71be3 to your computer and use it in GitHub Desktop.
snapshot-user.json.snap
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
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