koa-lite/test/response/socket.js
2014-09-08 23:53:46 +01:00

10 lines
255 B
JavaScript

var Stream = require('stream');
var response = require('../context').response;
describe('res.socket', function(){
it('should return the request socket object', function(){
var res = response();
res.socket.should.be.instanceOf(Stream);
})
})