koa-lite/test/context/writable.js

10 lines
237 B
JavaScript
Raw Normal View History

var context = require('../context');
describe('ctx.writable', function(){
it('should not crash when the socket does not exist', function(){
var ctx = context();
ctx.socket = null;
ctx.writable.should.equal(false);
})
})