does

For expectations

npm install does
41 downloads in the last month

experimental/unstable api changes will still occur (without deprecation warnings)
0.0.9 license

For spectateability.

does

use via ipso injection decorator


module.exports.start = ({port}) -> 

    server = require('http').createServer()
    server.listen port, -> console.log server.address()

ipso = require 'ipso'

describe 'start()', ->

    it 'starts http at config.port', ipso (facto, http, should) ->

        http.does 
            createServer: ->

                #
                # return mock server to test for listen( port )
                #

                listen: (port, hostname) -> 

                    port.should.equal 3000
                    should.not.exist hostname


            #
            # _createServer: -> console.log '_ denotes spy'
            # 


        start port: 3000
        facto()
npm loves you