You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
redirector/test/app.test.js

14 lines
361 B

4 years ago
const request = require('supertest')
const app = require('../app/app')
describe('Endpoints: /home', () => {
it('should return hello, world on GET: /home', async () => {
return request(app)
.get('/home')
.then(response => {
expect(response.statusCode).toBe(200)
expect(response.body.data).toBe('hello, world')
})
})
})