Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxin committed Sep 26, 2017
1 parent 1e522e8 commit b0493a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ app.use(_.get('/500', function (ctx) {
}))

app.use(_.get('/500-boom', function (ctx) {
ctx.throw(Boom.badImplementation('terrible implementation'))
ctx.throw(Boom.badImplementation('terrible implementation'))
}))

app.use(_.get('/error', function (ctx) {
Expand Down
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const chai = require('chai')
const sinon = require('sinon')
const sc = require('sinon-chai')
const request = require('supertest')
const boom = require('boom');
chai.use(sc)
const expect = chai.expect

Expand Down Expand Up @@ -153,7 +152,7 @@ describe('koa-logger', function () {
done()
})
})

it('should log a 500 response with boom', function (done) {
request(app.listen()).get('/500-boom').expect(500, function () {
expect(log).to.have.been.calledWith(' ' + chalk.red('xxx') +
Expand Down

0 comments on commit b0493a5

Please sign in to comment.