Skip to content

Commit 6a5e0ea

Browse files
committed
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.
1 parent d188297 commit 6a5e0ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require('../common');
2+
var assert = require('assert');
3+
4+
var expected_keys = ['ares', 'http_parser', 'modules', 'node',
5+
'openssl', 'uv', 'v8', 'zlib'];
6+
7+
assert.deepEqual(Object.keys(process.versions).sort(), expected_keys);

0 commit comments

Comments
 (0)