summaryrefslogtreecommitdiff
path: root/node_modules/forever/test/helpers/mocks/child-process.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/forever/test/helpers/mocks/child-process.js')
-rw-r--r--node_modules/forever/test/helpers/mocks/child-process.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/forever/test/helpers/mocks/child-process.js b/node_modules/forever/test/helpers/mocks/child-process.js
new file mode 100644
index 0000000..5b96147
--- /dev/null
+++ b/node_modules/forever/test/helpers/mocks/child-process.js
@@ -0,0 +1,12 @@
+var util = require('util'),
+ EventEmitter2 = require('eventemitter2').EventEmitter2,
+ StreamMock = require('./stream').StreamMock;
+
+var ChildProcessMock = exports.ChildProcessMock = function () {
+ EventEmitter2.call(this);
+
+ this.stdout = new StreamMock();
+ this.stderr = new StreamMock();
+};
+util.inherits(ChildProcessMock, EventEmitter2);
+