mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 06:31:11 +00:00

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.
15 lines
323 B
JavaScript
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();
|