Skip to content

Commit

Permalink
test: remove mixed async and callback
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Jul 16, 2024
1 parent 2a5ccb9 commit 44534ab
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/commonjs/basic/encapsulate/plugin2.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = async (fastify, opts, next) => {
module.exports = async (fastify, opts) => {
fastify.get('/encapsulate', {
handler: async (request, reply) => {
reply.status(200).send({ works: fastify.sharedVar })
Expand Down
2 changes: 1 addition & 1 deletion test/issues/374/routes/entity/_entity/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = async function (app, opts, next) {
module.exports = async function (app, opts) {
app.get('/', async function (req, reply) {
reply.status(200).send({ path: req.url, hooked: req.hooked, params: req.params })
})
Expand Down
2 changes: 1 addition & 1 deletion test/issues/374/routes/entity/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = async function (app, opts, next) {
module.exports = async function (app, opts) {
app.get('/', async function (req, reply) {
reply.status(200).send({ path: req.url, hooked: req.hooked })
})
Expand Down
2 changes: 1 addition & 1 deletion test/issues/374/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = async function (app, opts, next) {
module.exports = async function (app, opts) {
app.get('/', async function (req, reply) {
reply.status(200).send({ path: req.url })
})
Expand Down
2 changes: 1 addition & 1 deletion test/issues/376/routes/entity/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = async function (app, opts, next) {
module.exports = async function (app, opts) {
app.get('/', async function (req, reply) {
reply.status(200).send({ path: req.url, hooked: req.hooked })
})
Expand Down
2 changes: 1 addition & 1 deletion test/issues/376/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = async function (app, opts, next) {
module.exports = async function (app, opts) {
app.get('/', async function (req, reply) {
reply.status(200).send({ path: req.url })
})
Expand Down
2 changes: 1 addition & 1 deletion test/issues/388/routes/foo.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

module.exports = async function (app, opts, next) {
module.exports = async function (app, opts) {
app.get('/', async function (req, reply) {
reply.status(200).send({ tsx: 'ok' })
})
Expand Down

0 comments on commit 44534ab

Please sign in to comment.