UNPKG

@defra-fish/gafl-webapp-service

Version:

The websales frontend for the GAFL service

17 lines (14 loc) 626 B
import { start, stop, initialize, injectWithoutSessionCookie } from '../__mocks__/test-utils-system.js' beforeAll(() => new Promise(resolve => start(resolve))) beforeAll(() => new Promise(resolve => initialize(resolve))) afterAll(done => { stop(done) }) describe('Where the server is started', () => { it('serve public resources without the session cookie', async () => { const data = await injectWithoutSessionCookie('GET', '/public/stylesheets/main.css') expect(data.statusCode).toBe(200) const data2 = await injectWithoutSessionCookie('GET', '/favicon.ico') expect(data2.statusCode).toBe(200) }) })