Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

passing test for non-node array usage

  • Loading branch information...
commit cc33f06b5965704916422261b8f5cf382cd40444 1 parent 761b31b
@substack substack authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/forever-test.js
View
12 test/forever-test.js
@@ -59,5 +59,17 @@ vows.describe('forever').addBatch({
"should emit 'exit' when completed": function (err, child) {
assert.equal(child.times, 3);
}
+ },
+ "non-node usage with a perl one-liner": {
+ topic: function () {
+ var child = forever.start([ 'perl', '-le', 'print "moo"' ], {
+ max: 1,
+ silent: true,
+ });
+ child.on('stdout', this.callback.bind({}, null));
+ },
+ "should get back moo": function (err, buf) {
+ assert.equal(buf.toString(), 'moo\n');
+ }
}
}).export(module);
Please sign in to comment.
Something went wrong with that request. Please try again.