Comparing version 0.0.5 to 0.0.6
@@ -216,3 +216,3 @@ // Load modules | ||
if (process.env.NODE_ENV === 'test') { | ||
throw message || 'Unknown error'; | ||
throw new Error(message || 'Unknown error'); | ||
} | ||
@@ -219,0 +219,0 @@ else { |
{ | ||
"name": "hoek", | ||
"description": "General purpose node utilities", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "contributors":[ |
@@ -0,0 +0,0 @@ hoek |
@@ -83,2 +83,11 @@ var assert = require('assert'); | ||
}) | ||
describe("#assert", function() { | ||
it('should throw an Error when using assert in a test', function(done) { | ||
(function() { | ||
hoek.assert(false, 'my error message') | ||
}).should.throw('my error message'); | ||
done(); | ||
}) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
302
13065
1