assert-error

Basic assert function that throws provided error object

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
assert-error
401.0.39 years ago9 years agoMinified + gzip package size for assert-error in KB

Readme

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