koa-lite/test/request/header.js

9 lines
No EOL
212 B
JavaScript

var request = require('../request');
describe('req.header', function(){
it('should return the request header object', function(){
var req = request();
req.header.should.equal(req.req.headers);
})
})