diff options
Diffstat (limited to 'test/parallel/test-process-versions.js')
-rw-r--r-- | test/parallel/test-process-versions.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js index ba7b9e70b2a..48560961f48 100644 --- a/test/parallel/test-process-versions.js +++ b/test/parallel/test-process-versions.js @@ -3,7 +3,8 @@ const common = require('../common'); const assert = require('assert'); const expected_keys = ['ares', 'modules', 'node', - 'uv', 'v8', 'zlib', 'nghttp2', 'napi']; + 'uv', 'v8', 'zlib', 'nghttp2', 'napi', + 'http_parser', 'llhttp']; if (common.hasCrypto) { expected_keys.push('openssl'); @@ -16,9 +17,6 @@ if (common.hasIntl) { expected_keys.push('unicode'); } -expected_keys.push( - process.versions.llhttp === undefined ? 'http_parser' : 'llhttp'); - expected_keys.sort(); const actual_keys = Object.keys(process.versions).sort(); @@ -27,8 +25,8 @@ assert.deepStrictEqual(actual_keys, expected_keys); const commonTemplate = /^\d+\.\d+\.\d+(?:-.*)?$/; assert(commonTemplate.test(process.versions.ares)); -assert(commonTemplate.test(process.versions.llhttp === undefined ? - process.versions.http_parser : process.versions.llhttp)); +assert(commonTemplate.test(process.versions.llhttp)); +assert(commonTemplate.test(process.versions.http_parser)); assert(commonTemplate.test(process.versions.node)); assert(commonTemplate.test(process.versions.uv)); assert(commonTemplate.test(process.versions.zlib)); |