Skip to content

Commit

Permalink
build(deps-dev): use new @fastify org dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Apr 29, 2022
1 parent 3cb5854 commit 7d14b5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
},
"homepage": "https://github.com/fastify/fastify-bearer-auth#readme",
"devDependencies": {
"@fastify/auth": "^2.0.0",
"@types/node": "^17.0.0",
"fastify": "^3.0.0",
"fastify-auth": "^1.0.1",
"pre-commit": "^1.2.2",
"snazzy": "^9.0.0",
"standard": "^17.0.0",
Expand Down
8 changes: 4 additions & 4 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test('missing header route fails correctly', (t) => {
})
})

test('integration with fastify-auth', async (t) => {
test('integration with @fastify/auth', async (t) => {
t.plan(3)

const fastify = require('fastify')()
Expand All @@ -64,7 +64,7 @@ test('integration with fastify-auth', async (t) => {
}
return done(new Error('not anonymous'))
})
await fastify.register(require('fastify-auth'))
await fastify.register(require('@fastify/auth'))

fastify.route({
method: 'GET',
Expand Down Expand Up @@ -114,15 +114,15 @@ test('integration with fastify-auth', async (t) => {
})
})

test('integration with fastify-auth; not the last auth option', async (t) => {
test('integration with @fastify/auth; not the last auth option', async (t) => {
t.plan(3)

const fastify = require('fastify')()
await fastify.register(plugin, { addHook: false, keys: new Set(['123456']) })
await fastify.decorate('alwaysValidAuth', function (request, _, done) {
return done()
})
await fastify.register(require('fastify-auth'))
await fastify.register(require('@fastify/auth'))

fastify.route({
method: 'GET',
Expand Down

0 comments on commit 7d14b5e

Please sign in to comment.