koa-lite/test/request/headers.js
2017-05-11 11:30:32 +08:00

12 lines
283 B
JavaScript

'use strict';
const assert = require('assert');
const request = require('../helpers/context').request;
describe('req.headers', () => {
it('should return the request header object', () => {
const req = request();
assert.deepEqual(req.headers, req.req.headers);
});
});