Skip to content

Commit 3d5726c

Browse files
jbergstroemShigeki Ohtsu
authored and
Shigeki Ohtsu
committed
test: introduce a helper that checks if crypto is available
since this applies to tls and https (among other things), it'll be used for those tests as well. if we decouple the build system to somehow support crypto but not tls, we could refine this. PR-URL: #1049 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Shigeki Ohtsu <[email protected]>
1 parent d0e7c35 commit 3d5726c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/common.js

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ Object.defineProperty(exports, 'opensslCli', {get: function() {
4343
return opensslCli;
4444
}, enumerable: true });
4545

46+
Object.defineProperty(exports, 'hasCrypto', {get: function() {
47+
return process.versions.openssl ? true : false;
48+
}});
4649

4750
if (process.platform === 'win32') {
4851
exports.PIPE = '\\\\.\\pipe\\libuv-test';

0 commit comments

Comments
 (0)