From fce1acd748ed4ea77a345e882a5275c58cdedd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Wed, 14 Jan 2015 12:30:20 +1100 Subject: [PATCH] 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 --- test/parallel/test-process-versions.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/parallel/test-process-versions.js diff --git a/test/parallel/test-process-versions.js b/test/parallel/test-process-versions.js new file mode 100644 index 00000000000..63bf6d1665c --- /dev/null +++ b/test/parallel/test-process-versions.js @@ -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);