From 1ed691dde31ac2d7652048d8429746b3771ae976 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Fri, 2 Oct 2015 18:49:20 -0700 Subject: [PATCH] fix some test formatting --- test/request/ip.js | 3 ++- test/request/querystring.js | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/request/ip.js b/test/request/ip.js index 9758a80..409921b 100644 --- a/test/request/ip.js +++ b/test/request/ip.js @@ -18,7 +18,8 @@ describe('req.ip', function(){ req.socket.remoteAddress = '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(){ var req = request(); req.socket.remoteAddress = null; diff --git a/test/request/querystring.js b/test/request/querystring.js index 59e9387..8c89b77 100644 --- a/test/request/querystring.js +++ b/test/request/querystring.js @@ -2,12 +2,13 @@ var context = require('../context'); describe('ctx.querystring', function(){ - it('should return the querystring', function () { + it('should return the querystring', function(){ var ctx = context({ url: '/store/shoes?page=2&color=blue' }); ctx.querystring.should.equal('page=2&color=blue'); }) - describe('when ctx.req not present', function() { - it('should return an empty string', function (){ + + describe('when ctx.req not present', function(){ + it('should return an empty string', function(){ var ctx = context(); ctx.request.req = null; ctx.querystring.should.equal('');