Exemple #1
0
  it("isError", function() {
    assert.isError(new Error("error"));

    assert.throws(function() {
      assert.isError("5");
    });
  });
Exemple #2
0
 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);
 });