Skip to content

Commit

Permalink
Remove deprecated serverTimeout (#125)
Browse files Browse the repository at this point in the history
Closes #118
  • Loading branch information
thebergamo authored and arb committed Aug 26, 2016
1 parent d222ed6 commit f4f1c3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
3 changes: 0 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,6 @@ exports.serverUnavailable = function (message, data) {
return internals.serverError(message, data, 503, exports.serverUnavailable);
};

// Deprecated
exports.serverTimeout = exports.serverUnavailable;


exports.gatewayTimeout = function (message, data) {

Expand Down
17 changes: 1 addition & 16 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,21 +526,6 @@ describe('illegal()', () => {
});
});

describe('serverTimeout()', () => {

it('returns a 503 error statusCode', (done) => {

expect(Boom.serverTimeout().output.statusCode).to.equal(503);
done();
});

it('sets the message with the passed in message', (done) => {

expect(Boom.serverTimeout('my message').message).to.equal('my message');
done();
});
});

describe('serverUnavailable()', () => {

it('returns a 503 error statusCode', (done) => {
Expand Down Expand Up @@ -692,7 +677,7 @@ describe('stack trace', () => {
'badData', 'preconditionRequired', 'tooManyRequests',

// 500s
'internal', 'notImplemented', 'badGateway', 'serverTimeout', 'serverUnavailable',
'internal', 'notImplemented', 'badGateway', 'serverUnavailable',
'gatewayTimeout', 'badImplementation'
].forEach((name) => {

Expand Down

0 comments on commit f4f1c3e

Please sign in to comment.