File
Blob: src/workerd/api/node/tests/http2-test.js
| 1 | // Copyright (c) 2025 Cloudflare, Inc. |
| 2 | // Licensed under the Apache 2.0 license found in the LICENSE file or at: |
| 3 | // https://opensource.org/licenses/Apache-2.0 |
| 4 | import http2 from 'node:http2'; |
| 5 | import { strictEqual } from 'node:assert'; |
| 6 | |
| 7 | export const http2Test = { |
| 8 | test() { |
| 9 | strictEqual(typeof http2, 'object'); |
| 10 | strictEqual(typeof http2.constants, 'object'); |
| 11 | strictEqual(typeof http2.createSecureServer, 'function'); |
| 12 | strictEqual(typeof http2.createServer, 'function'); |
| 13 | strictEqual(typeof http2.Http2ServerRequest, 'function'); |
| 14 | strictEqual(typeof http2.Http2ServerResponse, 'function'); |
| 15 | strictEqual(typeof http2.connect, 'function'); |
| 16 | strictEqual(typeof http2.getDefaultSettings, 'function'); |
| 17 | strictEqual(typeof http2.getPackedSettings, 'function'); |
| 18 | strictEqual(typeof http2.getUnpackedSettings, 'function'); |
| 19 | strictEqual(typeof http2.performServerHandshake, 'function'); |
| 20 | strictEqual(typeof http2.sensitiveHeaders, 'symbol'); |
| 21 | }, |
| 22 | }; |