it("isError", function() { assert.isError(new Error("error")); assert.throws(function() { assert.isError("5"); }); });
assert.throws(function() { assert.isError("5"); });
}).on('error', function(err) { // Only happens on low level system failures that prevent fork/exec, // consider fatal, the system or this test is unrecoverable. assert.isError(err); });