koa-lite/test/response/socket.js
2015-10-11 16:08:32 -07:00

12 lines
270 B
JavaScript

'use strict';
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);
})
})