Comparing version 3.2.0 to 3.2.1
{ | ||
"name": "boom", | ||
"description": "HTTP-friendly error objects", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"repository": "git://github.com/hapijs/boom", | ||
@@ -18,3 +18,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"code": "2.x.x", | ||
"code": "3.x.x", | ||
"lab": "10.x.x", | ||
@@ -24,3 +24,3 @@ "markdown-toc": "0.12.x" | ||
"scripts": { | ||
"test": "lab -a code -t 100 -L", | ||
"test": "lab -a code -t 100 -L -v", | ||
"test-cov-html": "lab -a code -r html -o coverage.html -L", | ||
@@ -27,0 +27,0 @@ "toc": "node generate-toc.js", |
@@ -38,3 +38,3 @@ 'use strict'; | ||
expect(err.message).to.equal('ka-boom'); | ||
expect(err.output).to.deep.equal({ | ||
expect(err.output).to.equal({ | ||
statusCode: 500, | ||
@@ -176,3 +176,3 @@ payload: { | ||
expect(err.output.statusCode).to.equal(401); | ||
expect(err.output.headers).to.deep.equal({}); | ||
expect(err.output.headers).to.equal({}); | ||
done(); | ||
@@ -208,3 +208,3 @@ }); | ||
expect(err.output.headers['WWW-Authenticate']).to.equal('Test a="1", b="something", c="", d="0", error="boom"'); | ||
expect(err.output.payload.attributes).to.deep.equal({ a: 1, b: 'something', c: '', d: 0, error: 'boom' }); | ||
expect(err.output.payload.attributes).to.equal({ a: 1, b: 'something', c: '', d: 0, error: 'boom' }); | ||
done(); | ||
@@ -211,0 +211,0 @@ }); |
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
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
77912