assert-promise
v0.0.3
Published
Assert promise result with expected.
Downloads
20
Readme
Usage
var assertPromise = require('assert-promise')
it('assert failing promise', function(done) {
assertPromise.equal(promiseReturning2, 3).done(done)
})
it('assert passing promise', function(done) {
assertPromise.equal(promiseReturning2, 2).done(done)
})
or
require('mocha-as-promised')()
var assertPromise = require('assert-promise')
it('assert failing promise', function() {
return assertPromise.equal(promiseReturning2, 3)
})
it('assert passing promise', function() {
return assertPromise.equal(promiseReturning2, 2)
})