Skip to content

Instantly share code, notes, and snippets.

/app.test.ts Secret

Created March 7, 2018 06:37
What would you like to do?
import request from 'supertest';
import app from './app';
test('Hello world works', async () => {
const response = await request(app.callback()).get('/');
expect(response.text).toBe('Hello World');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment