koa-lite/test/request/header.js

12 lines
242 B
JavaScript
Raw Normal View History

'use strict';
const request = require('../helpers/context').request;
describe('req.header', () => {
it('should return the request header object', () => {
const req = request();
req.header.should.equal(req.req.headers);
2015-10-12 20:36:41 +00:00
});
});