10 lines
237 B
JavaScript
10 lines
237 B
JavaScript
|
|
||
|
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);
|
||
|
})
|
||
|
})
|