Skip to content

Commit

Permalink
hapi v19 comp
Browse files Browse the repository at this point in the history
  • Loading branch information
felixheck committed Jan 10, 2020
1 parent 62cb154 commit b7b3541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"ci.coverage": "nyc report --reporter=text-lcov | coveralls"
},
"devDependencies": {
"@hapi/hapi": "^18.4.0",
"@hapi/hapi": ">=18.4",
"ava": "^2.4.0",
"coveralls": "^3.0.9",
"nock": "^11.7.1",
Expand All @@ -59,7 +59,7 @@
"pupa": "^2.0.1"
},
"peerDependencies": {
"@hapi/hapi": "^18.4.0"
"@hapi/hapi": ">=18.4.0"
},
"engines": {
"node": ">=12",
Expand Down
7 changes: 0 additions & 7 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const helpers = require('./_helpers')
test('throw error if plugin gets registered twice', async (t) => {
const server = await helpers.getServer(undefined)
await t.throwsAsync(helpers.registerPlugin(server, undefined, true))
t.is(Object.keys(server.auth._schemes).length, 1)
})

test('throw error if scheme is used twice with same name', async (t) => {
Expand All @@ -15,9 +14,6 @@ test('throw error if scheme is used twice with same name', async (t) => {
name: 'Foobar'
}))
})

t.is(Object.keys(server.auth._schemes).length, 1)
t.is(Object.keys(server.auth._strategies).length, 2)
})

test('throw no error if scheme is used twice', async (t) => {
Expand All @@ -28,7 +24,4 @@ test('throw no error if scheme is used twice', async (t) => {
name: 'Foobar'
}))
})

t.is(Object.keys(server.auth._schemes).length, 1)
t.is(Object.keys(server.auth._strategies).length, 3)
})

0 comments on commit b7b3541

Please sign in to comment.