koa-lite/test/request/secure.js

13 lines
263 B
JavaScript
Raw Normal View History

'use strict';
const request = require('../helpers/context').request;
describe('req.secure', () => {
it('should return true when encrypted', () => {
const req = request();
req.req.socket = { encrypted: true };
req.secure.should.be.true;
2015-10-12 20:36:41 +00:00
});
});