@@ -34,6 +34,10 @@ export default {
3434 return await testTls ( ) ;
3535 case "/test-crypto" :
3636 return await testCrypto ( ) ;
37+ case "/test-sqlite" :
38+ return await testSqlite ( ) ;
39+ case "/test-http" :
40+ return await testHttp ( ) ;
3741 }
3842
3943 return new Response (
@@ -45,6 +49,8 @@ export default {
4549<a href="test-immediate">Test setImmediate</a>
4650<a href="test-tls">node:tls</a>
4751<a href="test-crypto">node:crypto</a>
52+ <a href="test-sqlite">node:sqlite</a>
53+ <a href="test-http">node:http</a>
4854` ,
4955 { headers : { "Content-Type" : "text/html; charset=utf-8" } }
5056 ) ;
@@ -140,6 +146,9 @@ function testBasicNodejsProperties() {
140146}
141147
142148function testProcessBehavior ( ) {
149+ assert . strictEqual ( typeof process . version , "string" ) ;
150+ assert . strictEqual ( typeof process . versions . node , "string" ) ;
151+
143152 const originalProcess = process ;
144153 try {
145154 assert . notEqual ( process , undefined ) ;
@@ -219,6 +228,8 @@ async function testTls() {
219228 true
220229 ) ;
221230
231+ assert . strictEqual ( typeof tls . convertALPNProtocols , "function" ) ;
232+
222233 return new Response ( "OK" ) ;
223234}
224235
@@ -241,3 +252,20 @@ async function testCrypto() {
241252
242253 return new Response ( "OK" ) ;
243254}
255+
256+ async function testSqlite ( ) {
257+ const sqlite = await import ( "node:sqlite" ) ;
258+
259+ assert . strictEqual ( typeof sqlite . DatabaseSync , "function" ) ;
260+
261+ return new Response ( "OK" ) ;
262+ }
263+
264+ async function testHttp ( ) {
265+ const http = await import ( "node:http" ) ;
266+
267+ const agent = new http . Agent ( ) ;
268+ assert . strictEqual ( typeof agent . options , "object" ) ;
269+
270+ return new Response ( "OK" ) ;
271+ }
0 commit comments