1// Flags: --tls-max-v1.3 2'use strict'; 3const common = require('../common'); 4if (!common.hasCrypto) common.skip('missing crypto'); 5 6// Check that node `--tls-max-v1.3` is supported. 7 8const assert = require('assert'); 9const tls = require('tls'); 10 11assert.strictEqual(tls.DEFAULT_MAX_VERSION, 'TLSv1.3'); 12assert.strictEqual(tls.DEFAULT_MIN_VERSION, 'TLSv1.2'); 13 14// Check the min-max version protocol versions against these CLI settings. 15require('./test-tls-min-max-version.js'); 16