Skip to content

Commit

Permalink
Merge pull request #819 from bizob2828/add-hapi-19-20
Browse files Browse the repository at this point in the history
Add hapi 19 20
  • Loading branch information
michaelgoin authored Jul 22, 2021
2 parents ca1380d + d351c1f commit f137362
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
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"
}
}

0 comments on commit f137362

Please sign in to comment.