koa-lite/test/response/socket.js

11 lines
255 B
JavaScript
Raw Permalink Normal View History

2014-09-08 22:53:46 +00:00
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);
})
})