fix some test formatting

This commit is contained in:
TJ Holowaychuk 2015-10-02 18:49:20 -07:00
parent 2359b6a769
commit 1ed691dde3
2 changed files with 6 additions and 4 deletions

View File

@ -18,6 +18,7 @@ describe('req.ip', function(){
req.socket.remoteAddress = '127.0.0.2'; req.socket.remoteAddress = '127.0.0.2';
req.ip.should.equal('127.0.0.2'); req.ip.should.equal('127.0.0.2');
}) })
describe('with req.socket.remoteAddress not present', function(){ describe('with req.socket.remoteAddress not present', function(){
it('should return an empty string', function(){ it('should return an empty string', function(){
var req = request(); var req = request();

View File

@ -6,6 +6,7 @@ describe('ctx.querystring', function(){
var ctx = context({ url: '/store/shoes?page=2&color=blue' }); var ctx = context({ url: '/store/shoes?page=2&color=blue' });
ctx.querystring.should.equal('page=2&color=blue'); ctx.querystring.should.equal('page=2&color=blue');
}) })
describe('when ctx.req not present', function(){ describe('when ctx.req not present', function(){
it('should return an empty string', function(){ it('should return an empty string', function(){
var ctx = context(); var ctx = context();