fix some test formatting
This commit is contained in:
parent
2359b6a769
commit
1ed691dde3
2 changed files with 6 additions and 4 deletions
|
@ -18,6 +18,7 @@ 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(){
|
||||
it('should return an empty string', function(){
|
||||
var req = request();
|
||||
|
|
|
@ -6,6 +6,7 @@ describe('ctx.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(){
|
||||
var ctx = context();
|
||||
|
|
Loading…
Reference in a new issue