-
-
Save anonymous/c0d2150aded9f127c5d497f09bd0f1f6 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).toBe('Hello World'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment