node/test/parallel/test-tls-client-default-ciphers.js
isaacs 3e1b1dd4a9 Remove excessive copyright/license boilerplate
The copyright and license notice is already in the LICENSE file.  There
is no justifiable reason to also require that it be included in every
file, since the individual files are not individually distributed except
as part of the entire package.
2015-01-12 15:30:28 -08:00

15 lines
323 B
JavaScript

var assert = require('assert');
var common = require('../common');
var tls = require('tls');
function test1() {
var ciphers = '';
tls.createSecureContext = function(options) {
ciphers = options.ciphers
}
var s = tls.connect(common.PORT);
s.destroy();
assert.equal(ciphers, tls.DEFAULT_CIPHERS);
}
test1();