2014-09-08 22:53:46 +00:00
|
|
|
|
2015-10-11 22:59:51 +00:00
|
|
|
'use strict';
|
|
|
|
|
2014-09-08 22:53:46 +00:00
|
|
|
var response = require('../context').response;
|
2014-11-16 13:52:14 +00:00
|
|
|
var Stream = require('stream');
|
2014-09-08 22:53:46 +00:00
|
|
|
|
|
|
|
describe('res.socket', function(){
|
|
|
|
it('should return the request socket object', function(){
|
|
|
|
var res = response();
|
|
|
|
res.socket.should.be.instanceOf(Stream);
|
|
|
|
})
|
|
|
|
})
|