(fastify, method)
| 5 | const Fastify = require('../../fastify') |
| 6 | |
| 7 | function addEcho (fastify, method) { |
| 8 | fastify.route({ |
| 9 | method, |
| 10 | url: '/', |
| 11 | handler: function (req, reply) { |
| 12 | reply.send(req.body) |
| 13 | } |
| 14 | }) |
| 15 | } |
| 16 | |
| 17 | test('missing method from http client', (t, done) => { |
| 18 | t.plan(2) |
no test coverage detected