Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test user specified callback to wrapped module.
Closes #86.
- Loading branch information
1 parent
836ae7f
commit 2060cc9
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Issue by Issue | ||
|
||
* Test user specified callback to wrapped module. #86. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#!/usr/bin/env node | ||
|
||
require('proof')(1, function (ok, equal) { | ||
require('proof')(2, function (ok, equal) { | ||
var echo = require('./fixtures/echo') | ||
var stream = require('stream') | ||
var stdout = new stream.PassThrough | ||
var chunks = [] | ||
stdout.on('data', function (data) { chunks.push(data.toString()) }) | ||
echo([ 'a', 'b' ], stdout) | ||
echo([ 'a', 'b' ], stdout, null, null, function () { | ||
ok(1, 'called back') | ||
}) | ||
equal(chunks.join(''), 'a b\n', 'executable') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters