diff --git a/package.json b/package.json index 1280d0c..e45c998 100644 --- a/package.json +++ b/package.json @@ -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", @@ -59,7 +59,7 @@ "pupa": "^2.0.1" }, "peerDependencies": { - "@hapi/hapi": "^18.4.0" + "@hapi/hapi": ">=18.4.0" }, "engines": { "node": ">=12", diff --git a/test/index.spec.js b/test/index.spec.js index 9349ac7..40ce0c6 100644 --- a/test/index.spec.js +++ b/test/index.spec.js @@ -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) => { @@ -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) => { @@ -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) })