-
-
Save anonymous/52ad6922b34821c88b9fdfc5282e4c69 to your computer and use it in GitHub Desktop.
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 request from 'supertest'; | |
import app from './app'; | |
test('Hello world works', async () => { | |
const response = await request(app.callback()).get('/'); | |
expect(response.status).toBe(200); | |
expect(response.text).toMatchSnapshot(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment