nodeunit icon indicating copy to clipboard operation
nodeunit copied to clipboard

Easy unit testing in node.js and the browser, based on the assert module.

Results 101 nodeunit issues
Sort by recently updated
recently updated
newest added

When I run nodeunit on the following code: ``` javascript var crypto = require('crypto'); exports.wtf = function(test) { var hash1 = crypto.createHash('sha256'); var hash2 = crypto.createHash('sha256'); hash2.on('readable', function() { hash2.read(4);...

I'm curious why vanilla asserts don't get reported by nodeunit? Meaning test.ok(true) counts but assert.ok(true) doesn't get counted. Am I doing something wrong or do I need to hack something?...

I apologize if this a quite obvious mistake on my part, but I have been staring at this for an hour. I don't know how this could possibly be a...

Hi there Other well-known test frameworks like tap have more assert functions. Especially the type checks, I am missing these here. Like isFunction() and type(). I know I could switch...

I've encountered an issue that's reproducible with async.parallel/auto and nodeunit. ``` javascript var async = require('async'); var str; exports.setUp = function(cb){ console.log('setup'); str = "This is a test"; cb(); }...

I have a module that uses jQuery (node-jquery). When i run nodeunit tests i get an error. I need a way to ignore jquery from the tests - actually all...

This is the test module: ``` module.exports = { 'Falsy tests with messages': function(test) { test.equal(1, undefined, "A message"); test.equal(1, null, "A message"); test.equal(1, false, "A message"); test.equal(1, 0, "A...

Would be nice if I had the option to mute AssertionError traces by piping stderr elsewhere. I recommend a new reporter, maybe "default-pretty" and "default-verbose" which produce the same results...

test.equal(1, 2) prints values in this order test.equal(false, true) prints values in reverse order ## reproduction printout ``` $ nodeunit ../nodejs3/snippets/modules/nodeunit/nodeunit-order.js nodeunit-order.js assert module works as expected BUG: As of...

test.deepEqual does not examine failing objects immediately, so incorrect values are printed ## Reproduction printout ``` $ nodeunit ../nodejs3/snippets/modules/nodeunit/nodeunit-changedobject.js nodeunit-changedobject.js Expected printout: AssertionError: { property: 'object1' } deepEqual { property:...