import {default as start} from '../index' import request from 'supertest' let app: any; beforeAll(async () => { app = await start() }) afterAll(() => { app.close() }) describe('Test the root path', () => { test('it show redirect to /pages/lego.html', (done) => { request(app).get('/').then((response) => { expect(response.header.location).toBe('/pages/lego.html'); done(); }); }); });