Skip to content

Commit

Permalink
chore: update plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Jun 7, 2022
1 parent 33d108d commit 3a04819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,5 +736,5 @@ function fastifyView (fastify, opts, next) {

module.exports = fp(fastifyView, {
fastify: '4.x',
name: 'point-of-view'
name: '@fastify/view'
})
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ test('plugin is registered with "point-of-view" name', t => {

const kRegistedPlugins = Symbol.for('registered-plugin')
const registeredPlugins = fastify[kRegistedPlugins]
t.ok(registeredPlugins.find(name => name === 'point-of-view'))
t.ok(registeredPlugins.find(name => name === '@fastify/view'))

fastify.close()
})
Expand Down

0 comments on commit 3a04819

Please sign in to comment.