mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 23:01:58 +00:00
2 more test files
This commit is contained in:
15
test/js/node/test/parallel/test-tls-cli-max-version-1.2.js
Normal file
15
test/js/node/test/parallel/test-tls-cli-max-version-1.2.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// Flags: --tls-max-v1.2
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto) common.skip('missing crypto');
|
||||
|
||||
// Check that node `--tls-max-v1.2` is supported.
|
||||
|
||||
const assert = require('assert');
|
||||
const tls = require('tls');
|
||||
|
||||
assert.strictEqual(tls.DEFAULT_MAX_VERSION, 'TLSv1.2');
|
||||
assert.strictEqual(tls.DEFAULT_MIN_VERSION, 'TLSv1.2');
|
||||
|
||||
// Check the min-max version protocol versions against these CLI settings.
|
||||
require('./test-tls-min-max-version.js');
|
||||
15
test/js/node/test/parallel/test-tls-cli-min-version-1.3.js
Normal file
15
test/js/node/test/parallel/test-tls-cli-min-version-1.3.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// Flags: --tls-min-v1.3
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto) common.skip('missing crypto');
|
||||
|
||||
// Check that node `--tls-min-v1.3` is supported.
|
||||
|
||||
const assert = require('assert');
|
||||
const tls = require('tls');
|
||||
|
||||
assert.strictEqual(tls.DEFAULT_MAX_VERSION, 'TLSv1.3');
|
||||
assert.strictEqual(tls.DEFAULT_MIN_VERSION, 'TLSv1.3');
|
||||
|
||||
// Check the min-max version protocol versions against these CLI settings.
|
||||
require('./test-tls-min-max-version.js');
|
||||
Reference in New Issue
Block a user