UNPKG

ncc-prototype-email-alerts-sub

Version:

Northumberland Council Front End Email Alerts Subscription Prototype

29 lines (24 loc) 602 B
import getApp from '../../app' import request from 'supertest'; import getConfig from '../../libs/config'; beforeAll(done => { done() }) describe('page router tests', () => { test('can access landing page', (done) => { const config = getConfig(); config.env = "test"; const app = getApp(config); request(app) .get('/index') .expect(200, done); }); test('can access postcode page', (done) => { const config = getConfig(); config.env = "test"; const app = getApp(config); request(app).get('/postcode') .expect(200) .end(done) }); });