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 authored and Rod Vagg committed 2015-01-14 12:43:52 +11:00
1 parent 31c32e7a99
commit fce1acd748
1 file changed
+7
+7
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);