koa-lite/test/response/socket.js
dead_horse eff4886cd8 ocd
2014-11-16 21:52:14 +08:00

10 lines
255 B
JavaScript

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