Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('res.podiumSend() - contructor argument "development" is set to "true" - should append default wireframe document', async () => {
const options = Object.assign({}, DEFAULT_OPTIONS, {
development: true,
});
const podlet = new Podlet(options);
const server = new FakeExpressServer(podlet, (req, res) => {
res.podiumSend('<h1>OK!</h1>');
});
await server.listen();
const result = await server.get({ raw: true });
const incoming = new HttpIncoming(SIMPLE_REQ, SIMPLE_RES);
expect(result.response).toEqual(template(incoming, '<h1>OK!</h1>'));
await server.close();
});