assert-error
1.0.3 • Public • Published SYNOPSIS
Simple assert function that throws provided error object.
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
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.3
2,378
Version History
Package Sidebar
Install
Weekly Downloads