Comparing version 0.3.0 to 0.3.1
@@ -24,2 +24,3 @@ // Load modules | ||
Error.call(this); | ||
this.isBoom = true; | ||
@@ -26,0 +27,0 @@ this.response = { |
{ | ||
"name": "boom", | ||
"description": "HTTP-friendly error objects", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "contributors": [], |
@@ -38,2 +38,17 @@ // Load modules | ||
describe('#isBoom', function () { | ||
it('returns true for Boom object', function (done) { | ||
expect(Boom.badRequest().isBoom).to.equal(true); | ||
done(); | ||
}); | ||
it('returns false for Error object', function (done) { | ||
expect(new Error().isBoom).to.not.exist; | ||
done(); | ||
}); | ||
}); | ||
describe('#badRequest', function () { | ||
@@ -40,0 +55,0 @@ |
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
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
14748
289