Browse Source

test: don't assume process.versions.openssl always is available

PR-URL: https://github.com/iojs/io.js/pull/1049
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
v1.8.0-commit
Johan Bergström 10 years ago
committed by Shigeki Ohtsu
parent
commit
d0e7c359a7
  1. 10
      test/parallel/test-process-versions.js

10
test/parallel/test-process-versions.js

@ -1,7 +1,11 @@
require('../common');
var common = require('../common');
var assert = require('assert');
var expected_keys = ['ares', 'http_parser', 'modules', 'node',
'openssl', 'uv', 'v8', 'zlib'];
'uv', 'v8', 'zlib'];
assert.deepEqual(Object.keys(process.versions).sort(), expected_keys);
if(common.hasCrypto) {
expected_keys.push('openssl');
}
assert.deepEqual(Object.keys(process.versions).sort(), expected_keys.sort());

Loading…
Cancel
Save