12 lines
283 B
JavaScript
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);
|
|
});
|
|
});
|