node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

assert-error

SYNOPSIS

Simple assert function that throws provided error object.

Build Status

USAGE

var assert = require('assert-error');
 
var myError = new Error('my error');
myError.code = 404;
 
assert(true === true, myError);

LICENSE

Apache License, Version 2.0