text: const should = require('should')
  const KoaServerResponse = require('../KoaServerResponse')
  
  describe('ServerResponse class', function() {
    it('should receive default HTTP 200', () => {
      let ctx = {}
      KoaServerResponse.success(ctx)
      ctx.status.should.be.eql(200)
      ctx.body.message.should.be.eql('OK')
      ctx.body.createdAt.should.be.a.Date()
      should.not.exist(ctx.body.data)
    })
  
    it('should receive default HTTP 500', () => {
      let ctx = {}
      KoaServerResponse.serverError(ctx)
      ctx.status.should.be.eql(500)
      ctx.body.message.should.be.eql('Server Error')
      ctx.body.createdAt.should.be.a.Date()
      should.not.exist(ctx.body.data)
    })
  })
  