Skip to content

Commit

Permalink
[node] imported and global process are same (DefinitelyTyped#11092)
Browse files Browse the repository at this point in the history
* imported and global process are same

* imported and global process are same
  • Loading branch information
TonyPythoneer authored and vvakame committed Sep 9, 2016
1 parent 3d232e8 commit fc1b3e1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
17 changes: 16 additions & 1 deletion node/node-4-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ///
///////////////////////////////////////////////////////////
Expand All @@ -882,4 +898,3 @@ namespace console_tests{
assert(c === console);
}
}

11 changes: 10 additions & 1 deletion node/node-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit fc1b3e1

Please sign in to comment.