diff --git a/node/node-4-tests.ts b/node/node-4-tests.ts index 348723ea6e0815..af139829c7aa8d 100644 --- a/node/node-4-tests.ts +++ b/node/node-4-tests.ts @@ -872,6 +872,22 @@ namespace errors_tests { } } +/////////////////////////////////////////////////////////// +/// Process Tests : https://nodejs.org/api/process.html /// +/////////////////////////////////////////////////////////// + +import * as p from "process"; +namespace process_tests{ + { + var eventEmitter: events.EventEmitter; + eventEmitter = process; // Test that process implements EventEmitter... + + var _p: NodeJS.Process = process; + _p = p; + assert(p === process); + } +} + /////////////////////////////////////////////////////////// /// Console Tests : https://nodejs.org/api/console.html /// /////////////////////////////////////////////////////////// @@ -882,4 +898,3 @@ namespace console_tests{ assert(c === console); } } - diff --git a/node/node-tests.ts b/node/node-tests.ts index 05d0b177a2d4cc..1af627e1e17220 100644 --- a/node/node-tests.ts +++ b/node/node-tests.ts @@ -1078,10 +1078,19 @@ namespace errors_tests { } } +/////////////////////////////////////////////////////////// +/// Process Tests : https://nodejs.org/api/process.html /// +/////////////////////////////////////////////////////////// + +import * as p from "process"; namespace process_tests{ { var eventEmitter: events.EventEmitter; - eventEmitter = process; // Test that process implements EventEmitter... + eventEmitter = process; // Test that process implements EventEmitter... + + var _p: NodeJS.Process = process; + _p = p; + assert(p === process); } }