Hi,
I think I run into a bug with mocha, step and node.js.
I have this very little program that can be run with mocha and it passes
the test and prints hello world. However it should fail because of the not
existing function.
When the function with the hello world print is commented, it fails like
expected on the not esisting function.
Is this a bug or am I using the API in the wrong way?
Gr,
Thijs
var step = require ('step');
describe ('bug', function () {
it ('should fail', function (done) {
step (
function () {
this_is_a_not_existing_function ();
this ();
},
function () {
console.log ('hello world');
this ();
},
done
)
})
})
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en