-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for hapi v21, node v18, ESM tests (#132)
* Support node v18, drop node v12, test ESM * Fix tests for hapi v20/21 and node v18, handling IPv6 server defaults * Fix tests for broader OS and hapi version support * Use hrtime.bigint() rather than legacy hrtime() Co-authored-by: Big Room Studios <[email protected]>
- Loading branch information
Showing
7 changed files
with
134 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use strict'; | ||
|
||
const Code = require('@hapi/code'); | ||
const Lab = require('@hapi/lab'); | ||
|
||
|
||
const { before, describe, it } = exports.lab = Lab.script(); | ||
const expect = Code.expect; | ||
|
||
|
||
describe('import()', () => { | ||
|
||
let H2o2; | ||
|
||
before(async () => { | ||
|
||
H2o2 = await import('../lib/index.js'); | ||
}); | ||
|
||
it('exposes all methods and classes as named imports', () => { | ||
|
||
expect(Object.keys(H2o2)).to.equal([ | ||
'default', | ||
'plugin' | ||
]); | ||
}); | ||
}); |
Oops, something went wrong.