0.0.11 • Published 11 years ago

does v0.0.11

Weekly downloads
40
License
-
Repository
github
Last release
11 years ago

experimental/unstable api changes will still occur (without deprecation warnings) <br> 0.0.11 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()

use standalone

extends object.prototype with does() and did() for expectation setup and confirmation

0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago

0.0.0

12 years ago