const request = require('supertest') const app = require('../src/app') describe('Test endpoint(s)', () => { it('should return a 200 status code', () => { request(app) .get('/registration') .expect(200) .end(function (err, res) { if (err) throw err }) }) it('should return a 200 status code', () => { request(app) .get('/forgotPwd') .expect(200) .end(function (err, res) { if (err) throw err }) }) it('should return a 200 status code', () => { request(app) .get('/contact') .expect(200) .end(function (err, res) { if (err) throw err }) }) })