How to use the hyper-ts.send function in hyper-ts

To help you get started, we’ve selected a few hyper-ts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DenisFrezzato / hyper-ts-fastify / test / index.ts View on Github external
it('should send the content', () => {
      const m = H.send('<h1>Hello world!</h1>')
      const c = new MockConnection(new MockRequest())
      return assertSuccess(m, c, undefined, [{ type: 'setBody', body: '<h1>Hello world!</h1>' }])
    })
  })