Skip to content

Commit 067b1a2

Browse files
arbhueniverse
authored andcommitted
Updated to code 3. (#113)
1 parent a12e0ac commit 067b1a2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"hoek": "4.x.x"
1616
},
1717
"devDependencies": {
18-
"code": "2.x.x",
18+
"code": "3.x.x",
1919
"lab": "10.x.x",
2020
"markdown-toc": "0.12.x"
2121
},
2222
"scripts": {
23-
"test": "lab -a code -t 100 -L",
23+
"test": "lab -a code -t 100 -L -v",
2424
"test-cov-html": "lab -a code -r html -o coverage.html -L",
2525
"toc": "node generate-toc.js",
2626
"postversion": "npm run toc && git commit -a --amend --no-edit"

test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ it('returns an error with info when constructed using another error', (done) =>
3535
const err = Boom.wrap(error);
3636
expect(err.xyz).to.equal(123);
3737
expect(err.message).to.equal('ka-boom');
38-
expect(err.output).to.deep.equal({
38+
expect(err.output).to.equal({
3939
statusCode: 500,
4040
payload: {
4141
statusCode: 500,
@@ -172,7 +172,7 @@ describe('unauthorized()', () => {
172172

173173
const err = Boom.unauthorized();
174174
expect(err.output.statusCode).to.equal(401);
175-
expect(err.output.headers).to.deep.equal({});
175+
expect(err.output.headers).to.equal({});
176176
done();
177177
});
178178

@@ -203,7 +203,7 @@ describe('unauthorized()', () => {
203203
const err = Boom.unauthorized('boom', 'Test', { a: 1, b: 'something', c: null, d: 0 });
204204
expect(err.output.statusCode).to.equal(401);
205205
expect(err.output.headers['WWW-Authenticate']).to.equal('Test a="1", b="something", c="", d="0", error="boom"');
206-
expect(err.output.payload.attributes).to.deep.equal({ a: 1, b: 'something', c: '', d: 0, error: 'boom' });
206+
expect(err.output.payload.attributes).to.equal({ a: 1, b: 'something', c: '', d: 0, error: 'boom' });
207207
done();
208208
});
209209

0 commit comments

Comments
 (0)