ronantakizawa/codereview-bench huggingface dataset:
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
'use strict'

const { test, describe } = require('node:test')
const Fastify = require('../fastify')

const fastify = Fastify()

describe('hasRoute', async t => {
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.equal(fastify.hasRoute({ }), false)

    t.assert.equal(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.equal(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)

Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({ }), false)
```

Code after:
'use strict'

const { test, describe } = require('node:test')
const Fastify = require('../fastify')

const fastify = Fastify()

describe('hasRoute', async t => {
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.strictEqual(fastify.hasRoute({ }), false)

    t.assert.strictEqual(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.strictEqual(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
'use strict'

const { test, describe } = require('node:test')
const Fastify = require('../fastify')

const fastify = Fastify()

describe('hasRoute', async t => {
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.equal(fastify.hasRoute({ }), false)

    t.assert.equal(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.equal(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })


Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({ method: 'GET' }), false)
```

Code after:
'use strict'

const { test, describe } = require('node:test')
const Fastify = require('../fastify')

const fastify = Fastify()

describe('hasRoute', async t => {
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.strictEqual(fastify.hasRoute({ }), false)

    t.assert.strictEqual(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.strictEqual(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
'use strict'

const { test, describe } = require('node:test')
const Fastify = require('../fastify')

const fastify = Fastify()

describe('hasRoute', async t => {
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.equal(fastify.hasRoute({ }), false)

    t.assert.equal(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.equal(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)

Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({ constraints: [] }), false)
```

Code after:
'use strict'

const { test, describe } = require('node:test')
const Fastify = require('../fastify')

const fastify = Fastify()

describe('hasRoute', async t => {
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.strictEqual(fastify.hasRoute({ }), false)

    t.assert.strictEqual(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.strictEqual(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
const Fastify = require('../fastify')

const fastify = Fastify()

describe('hasRoute', async t => {
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.equal(fastify.hasRoute({ }), false)

    t.assert.equal(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.equal(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }

Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({
```

Code after:
const Fastify = require('../fastify')

const fastify = Fastify()

describe('hasRoute', async t => {
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.strictEqual(fastify.hasRoute({ }), false)

    t.assert.strictEqual(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.strictEqual(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.equal(fastify.hasRoute({ }), false)

    t.assert.equal(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.equal(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',

Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({
```

Code after:
  test('hasRoute - invalid options', t => {
    t.plan(3)

    t.assert.strictEqual(fastify.hasRoute({ }), false)

    t.assert.strictEqual(fastify.hasRoute({ method: 'GET' }), false)

    t.assert.strictEqual(fastify.hasRoute({ constraints: [] }), false)
  })

  test('hasRoute - primitive method', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.3.0' }
    }), false)
  })

  test('hasRoute - parametric route regexp with constraints', t => {
    t.plan(1)
    // parametric with regexp
    fastify.get('/example/:file(^\\d+).png', function (request, reply) { })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/example/:file(^\\d+).png'
    }), true)
  })

  test('hasRoute - finds a route even if method is not uppercased', t => {
    t.plan(1)

Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({
```

Code after:
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/'
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.3.0' }
    }), false)
  })

  test('hasRoute - parametric route regexp with constraints', t => {
    t.plan(1)
    // parametric with regexp
    fastify.get('/example/:file(^\\d+).png', function (request, reply) { })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/example/:file(^\\d+).png'
    }), true)
  })

  test('hasRoute - finds a route even if method is not uppercased', t => {
    t.plan(1)
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.3.0' }
    }), false)
  })

  test('hasRoute - parametric route regexp with constraints', t => {
    t.plan(1)
    // parametric with regexp
    fastify.get('/example/:file(^\\d+).png', function (request, reply) { })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/example/:file(^\\d+).png'
    }), true)
  })

  test('hasRoute - finds a route even if method is not uppercased', t => {
    t.plan(1)
    fastify.route({
      method: 'GET',
      url: '/equal',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }

Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({
```

Code after:
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'POST',
      url: '/'
    }), false)
  })

  test('hasRoute - with constraints', t => {
    t.plan(2)
    fastify.route({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.3.0' }
    }), false)
  })

  test('hasRoute - parametric route regexp with constraints', t => {
    t.plan(1)
    // parametric with regexp
    fastify.get('/example/:file(^\\d+).png', function (request, reply) { })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/example/:file(^\\d+).png'
    }), true)
  })

  test('hasRoute - finds a route even if method is not uppercased', t => {
    t.plan(1)
    fastify.route({
      method: 'GET',
      url: '/equal',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
    }), true)

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.3.0' }
    }), false)
  })

  test('hasRoute - parametric route regexp with constraints', t => {
    t.plan(1)
    // parametric with regexp
    fastify.get('/example/:file(^\\d+).png', function (request, reply) { })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/example/:file(^\\d+).png'
    }), true)
  })

  test('hasRoute - finds a route even if method is not uppercased', t => {
    t.plan(1)
    fastify.route({
      method: 'GET',
      url: '/equal',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'get',
      url: '/equal'
    }), true)
  })
})


Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({
```

Code after:
      url: '/',
      constraints: { version: '1.2.0' },
      handler: (req, reply) => {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.2.0' }
    }), true)

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/',
      constraints: { version: '1.3.0' }
    }), false)
  })

  test('hasRoute - parametric route regexp with constraints', t => {
    t.plan(1)
    // parametric with regexp
    fastify.get('/example/:file(^\\d+).png', function (request, reply) { })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/example/:file(^\\d+).png'
    }), true)
  })

  test('hasRoute - finds a route even if method is not uppercased', t => {
    t.plan(1)
    fastify.route({
      method: 'GET',
      url: '/equal',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'get',
      url: '/equal'
    }), true)
  })
})
Repository: fastify/fastify
File: test/has-route.test.js (JavaScript)

Code before:
      constraints: { version: '1.3.0' }
    }), false)
  })

  test('hasRoute - parametric route regexp with constraints', t => {
    t.plan(1)
    // parametric with regexp
    fastify.get('/example/:file(^\\d+).png', function (request, reply) { })

    t.assert.equal(fastify.hasRoute({
      method: 'GET',
      url: '/example/:file(^\\d+).png'
    }), true)
  })

  test('hasRoute - finds a route even if method is not uppercased', t => {
    t.plan(1)
    fastify.route({
      method: 'GET',
      url: '/equal',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.equal(fastify.hasRoute({
      method: 'get',
      url: '/equal'
    }), true)
  })
})


Review comment (suggestion):
```suggestion
    t.assert.strictEqual(fastify.hasRoute({
```

Code after:
      constraints: { version: '1.3.0' }
    }), false)
  })

  test('hasRoute - parametric route regexp with constraints', t => {
    t.plan(1)
    // parametric with regexp
    fastify.get('/example/:file(^\\d+).png', function (request, reply) { })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'GET',
      url: '/example/:file(^\\d+).png'
    }), true)
  })

  test('hasRoute - finds a route even if method is not uppercased', t => {
    t.plan(1)
    fastify.route({
      method: 'GET',
      url: '/equal',
      handler: function (req, reply) {
        reply.send({ hello: 'world' })
      }
    })

    t.assert.strictEqual(fastify.hasRoute({
      method: 'get',
      url: '/equal'
    }), true)
  })
})
Repository: fastify/fastify
File: test/context-config.test.js (JavaScript)

Code before:
    handler,
    config: Object.assign({}, schema.config)
  })

  fastify.route({
    method: 'GET',
    url: '/no-config',
    schema: schema.schema,
    handler
  })

  let response = await fastify.inject({
    method: 'GET',
    url: '/get'
  })

  t.assert.ifError(response.error)
  t.assert.equal(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), Object.assign({ url: '/get', method: 'GET' }, schema.config))

  response = await fastify.inject({
    method: 'GET',
    url: '/route'
  })
  t.assert.ifError(response.error)
  t.assert.equal(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), Object.assign({ url: '/route', method: 'GET' }, schema.config))

  response = await fastify.inject({
    method: 'GET',
    url: '/no-config'
  })

  t.assert.ifError(response.error)
  t.assert.equal(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), { url: '/no-config', method: 'GET' })
})


Review comment (suggestion):
We should use `strictEqual` here over `equal`
```suggestion
  t.assert.strictEqual(response.statusCode, 200)
```

Code after:
    url: '/no-config',
    schema: schema.schema,
    handler
  })

  let response = await fastify.inject({
    method: 'GET',
    url: '/get'
  })

  t.assert.strictEqual(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), Object.assign({ url: '/get', method: 'GET' }, schema.config))

  response = await fastify.inject({
    method: 'GET',
    url: '/route'
  })
  t.assert.strictEqual(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), Object.assign({ url: '/route', method: 'GET' }, schema.config))

  response = await fastify.inject({
    method: 'GET',
    url: '/no-config'
  })

  t.assert.strictEqual(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), { url: '/no-config', method: 'GET' })
})
Repository: fastify/fastify
File: test/context-config.test.js (JavaScript)

Code before:
    schema: schema.schema,
    config: Object.assign({}, schema.config)
  }, handler)

  fastify.route({
    method: 'GET',
    url: '/route',
    schema: schema.schema,
    handler,
    config: Object.assign({}, schema.config)
  })

  fastify.route({
    method: 'GET',
    url: '/no-config',
    schema: schema.schema,
    handler
  })

  let response = await fastify.inject({
    method: 'GET',
    url: '/get'
  })

  t.assert.ifError(response.error)
  t.assert.equal(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), Object.assign({ url: '/get', method: 'GET' }, schema.config))

  response = await fastify.inject({
    method: 'GET',
    url: '/route'
  })
  t.assert.ifError(response.error)
  t.assert.equal(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), Object.assign({ url: '/route', method: 'GET' }, schema.config))

  response = await fastify.inject({
    method: 'GET',
    url: '/no-config'
  })

  t.assert.ifError(response.error)
  t.assert.equal(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), { url: '/no-config', method: 'GET' })
})


Review comment (suggestion):
We should use `strictEqual` here over `equal`
```suggestion
  t.assert.strictEqual(response.statusCode, 200)
```

Code after:
    url: '/route',
    schema: schema.schema,
    handler,
    config: Object.assign({}, schema.config)
  })

  fastify.route({
    method: 'GET',
    url: '/no-config',
    schema: schema.schema,
    handler
  })

  let response = await fastify.inject({
    method: 'GET',
    url: '/get'
  })

  t.assert.strictEqual(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), Object.assign({ url: '/get', method: 'GET' }, schema.config))

  response = await fastify.inject({
    method: 'GET',
    url: '/route'
  })
  t.assert.strictEqual(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), Object.assign({ url: '/route', method: 'GET' }, schema.config))

  response = await fastify.inject({
    method: 'GET',
    url: '/no-config'
  })

  t.assert.strictEqual(response.statusCode, 200)
  t.assert.deepStrictEqual(response.json(), { url: '/no-config', method: 'GET' })
})