Skip to content

Commit

Permalink
Updated to code 3. (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
arb authored and hueniverse committed May 22, 2016
1 parent a12e0ac commit 067b1a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"hoek": "4.x.x"
},
"devDependencies": {
"code": "2.x.x",
"code": "3.x.x",
"lab": "10.x.x",
"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",
"toc": "node generate-toc.js",
"postversion": "npm run toc && git commit -a --amend --no-edit"
Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ it('returns an error with info when constructed using another error', (done) =>
const err = Boom.wrap(error);
expect(err.xyz).to.equal(123);
expect(err.message).to.equal('ka-boom');
expect(err.output).to.deep.equal({
expect(err.output).to.equal({
statusCode: 500,
payload: {
statusCode: 500,
Expand Down Expand Up @@ -172,7 +172,7 @@ describe('unauthorized()', () => {

const err = Boom.unauthorized();
expect(err.output.statusCode).to.equal(401);
expect(err.output.headers).to.deep.equal({});
expect(err.output.headers).to.equal({});
done();
});

Expand Down Expand Up @@ -203,7 +203,7 @@ describe('unauthorized()', () => {
const err = Boom.unauthorized('boom', 'Test', { a: 1, b: 'something', c: null, d: 0 });
expect(err.output.statusCode).to.equal(401);
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();
});

Expand Down

0 comments on commit 067b1a2

Please sign in to comment.