Skip to content

iefserge/assert-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Basic assert function that throws provided error object

Resources

License

Stars

Watchers

Forks

Packages