koa-lite/test/response/socket.js
2017-05-11 11:30:32 +08:00

13 lines
321 B
JavaScript

'use strict';
const assert = require('assert');
const response = require('../helpers/context').response;
const Stream = require('stream');
describe('res.socket', () => {
it('should return the request socket object', () => {
const res = response();
assert.equal(res.socket instanceof Stream, true);
});
});