10 lines
233 B
JavaScript
10 lines
233 B
JavaScript
|
|
||
|
var request = require('../request');
|
||
|
|
||
|
describe('req.secure', function(){
|
||
|
it('should return true when encrypted', function(){
|
||
|
var req = request();
|
||
|
req.req.socket = { encrypted: true };
|
||
|
req.secure.should.be.true;
|
||
|
})
|
||
|
})
|