Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var
assert = require( "assert" ),
test = require( "fab/tests" );
function myBinaryApp( app ) {
return function() {
require( "sys" ).puts( "myBinaryApp called..." )
return app.call( this );
}
}
exports.tests = [
function(){ tests.assertArity( 2 )( myBinaryApp ) },
function(){
var unaryApp = myBinaryApp( function(){} );
tests.assertArity( 1 )( unaryApp );
}
]
exports.docs = "\
This is my documentation.\
I hope this idea isn't too janky.\
";
exports.app = myBinaryApp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment