diff --git a/test/js/node/test/parallel/test-tls-cli-min-version-1.1.js b/test/js/node/test/parallel/test-tls-cli-min-version-1.1.js new file mode 100644 index 0000000000..38bbf05fff --- /dev/null +++ b/test/js/node/test/parallel/test-tls-cli-min-version-1.1.js @@ -0,0 +1,15 @@ +// Flags: --tls-min-v1.1 +'use strict'; +const common = require('../common'); +if (!common.hasCrypto) common.skip('missing crypto'); + +// Check that node `--tls-v1.1` 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.1'); + +// Check the min-max version protocol versions against these CLI settings. +require('./test-tls-min-max-version.js'); \ No newline at end of file