Skip to content

Commit

Permalink
passing test for non-node array usage
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Dec 22, 2010
1 parent 761b31b commit cc33f06
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/forever-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit cc33f06

Please sign in to comment.