Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hapi 19 20 #819

Merged
merged 2 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/versioned/hapi/hapi-post-18/errors.tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ tap.test('Hapi v17 error handling', function(t) {

runTest(t, (errors, statusCode) => {
t.equals(errors.length, 0, 'has no reported errors')
t.equals(statusCode, 200, 'has expected 200 status')
t.ok([200, 204].includes(statusCode), 'has expected 200 or 204 status code')
t.end()
})
})
Expand Down
26 changes: 24 additions & 2 deletions test/versioned/hapi/hapi-post-18/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,29 @@
},
"dependencies": {
"ejs": "2.5.5",
"@hapi/hapi": "^18.3.1",
"@hapi/hapi": ">=18.3.1",
"vision": "^5.0.0"
},
"files": [
"capture-params.tap.js",
"errors.tap.js",
"ext.tap.js",
"hapi.tap.js",
"ignoring.tap.js",
"plugins.tap.js",
"render.tap.js",
"router.tap.js",
"segments.tap.js",
"vhost.tap.js"
]
},
{
"engines": {
"node": ">=16"
},
"dependencies": {
"ejs": "2.5.5",
"@hapi/hapi": "^20.1.2",
"vision": "^5.0.0"
},
"files": [
Expand All @@ -27,8 +49,8 @@
}
],
"dependencies": {
"ejs": "^2.5.5",
"@hapi/hapi": "^18.3.1",
"ejs": "^2.5.5",
"vision": "^5.0.0"
}
}