({ schema, httpPart, url, method })
| 199 | const fastify = Fastify() |
| 200 | let called = 0 |
| 201 | const custom = ({ schema, httpPart, url, method }) => { |
| 202 | t.assert.strictEqual(schema, defaultSchema) |
| 203 | t.assert.strictEqual(url, '/') |
| 204 | t.assert.strictEqual(method, 'GET') |
| 205 | t.assert.strictEqual(httpPart, 'querystring') |
| 206 | |
| 207 | return input => { |
| 208 | called++ |
| 209 | t.assert.deepStrictEqual(input, { hello: 'world' }) |
| 210 | return true |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | t.plan(10) |
| 215 |
nothing calls this directly
no outgoing calls
no test coverage detected