koa-lite/test/response/socket.js

13 lines
270 B
JavaScript
Raw Permalink Normal View History

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