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

Hello, I recently cloned the repository and run the commands 'make test' and 'make lint'. Both the commands show errors : Output of both the commands, prateek@prateek:~/codes/nodeunit$ make test node...

Hi, I would like to test my rest api using httputil, it work fine for get request, but for post and put with body request, what should i do? I...

``` var nodeunit = require('nodeunit'); nodeunit.assert.deepEqual(new Map([[1,2]]), new Map([[3,4]])); // expected: exception nodeunit.assert.deepEqual(new Set([1]), new Set([2])); // expected: exception ```

So I have some code that requires waiting for a call back and testing the response of it. For some reason the callback never managed to get called. I've stepped...

## example code ` var reporter = require('nodeunit').reporters.html; reporter.run(path, secondparam); ` - the 'secondparam' must config testSpec and testFullSpec , otherwise lead to a undefined error, but not all the...

I want to use something like console.log to write some messages, but it sould not work.

Following test hangs with 0.5.3 but works with 0.5.1 ``` javascript var net = require('net'); exports['init-conn-test'] = function (test) { var someServer = net.createServer(); var port = 1122; var done...

I hate myself when I want to end a test and the only solution coming to my mind is: ``` foo(err) { if (err) { test.ok(false, 'error in foo, test...

Fatal errors in callbacks defined in the test functions are not displayed, only the "test.done() not called" diagnostic is shown. It's useful to have the error and line number too....

Exceptions that occur inside test functions are completely missed. This creates issues like test failing but makes it completely unclear where the failure occured. The exceptions should be catched and...