test: introduce a test for process.versions output

make sure that process.versions contains an expected list of software to avoid
potential mistakes with refactoring.

PR-URL: https://github.com/iojs/io.js/pull/352
Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
Johan Bergström 2015-01-14 12:30:20 +11:00 committed by Rod Vagg
parent 31c32e7a99
commit fce1acd748

View File

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