does 0.0.11

For expectations

Homepage: https://github.com/nomilous/does

Platform: npm

Language: Groovy

License: MIT

View on registry: https://www.npmjs.com/package/does

Direct download link: https://registry.npmjs.org/does/-/does-0.0.11.tgz

Install: npm install [email protected]


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




Dependencies Requirements Latest Stable Latest Release Licenses
also 0.0.13 0.0.14 0.0.14 Unknown
colors ~0.6.2 1.1.2 1.1.2 MIT
Explore the resolved dependency tree for does 0.0.11
Development Dependencies Requirements Latest Stable Latest Release Licenses
coffee-script ~1.6.3 1.12.2 1.12.2 MIT
hound ~1.0.4 1.0.4 1.0.4 BSD-2-Clause
ipso 0.0.15 0.0.22 0.0.22 MIT
mocha ~1.13.0 3.2.0 3.2.0 MIT
should ~2.0.2 11.1.2 11.1.2 MIT
Explore the resolved development dependency tree for does 0.0.11

Dependent Projects

See all dependent projects

Releases

  • 0.0.11 - June 28, 2014 15:17
  • 0.0.10 - June 27, 2014 17:58
  • 0.0.9 - December 27, 2013 15:45
  • 0.0.8 - December 23, 2013 12:04
  • 0.0.7 - December 12, 2013 16:23
  • 0.0.6 - December 05, 2013 18:22
  • 0.0.5 - December 02, 2013 21:52
  • 0.0.4 - November 20, 2013 18:54
  • 0.0.3 - November 13, 2013 20:36
  • 0.0.2 - November 12, 2013 21:43
See all 12 releases

Project Statistics

SourceRank 6
Dependencies 2
Dependent projects 1
Dependent repositories 1
Total releases 12
Latest release
First release
Stars 0
Forks 0
Watchers 1
Contributors 1
Repo Size: 809 KB

Top Contributors See all

Richard Emslie

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2016-10-13 09:41:40 UTC