0.1.3 • Published 8 years ago

nodeunitq v0.1.3

Weekly downloads
26
License
Apache-2.0
Repository
github
Last release
8 years ago

nodeunitq

Build Status

Simple utilities for nodeunit (like test builders and assertions), particularly around Q promises.

In normal nodeunit, you add a test like this:

exports.testFunction = function (test) {
  promise.run()
    .fail(failureHandler)
    .fin(test.done.bind(test))
}

In nodeunitq, you write a test like this:

var Q = require('Q')
var nodeunitq = require('nodeunitq')
var builder = new nodeunitq.Builder(exports)

builder.add(function testPromise(test) {
  return Q.fcall(function () { return 1 })
})

And nodeunitq will take care of the failure handling for you.

License

Apache License, Version 2.0.

0.1.3

8 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago