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