Fix oAuth unit tests now that we use req.path rather than req.route.path

This commit is contained in:
Sandro Santilli 2013-06-06 17:08:31 +02:00
parent f27812535d
commit a108a8d545
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
1.4.1
-----
* Fix windowing support for non-uppercased SELECT queries
* Fix oAuth testcase
1.4.0
-----

View File

@ -69,7 +69,7 @@ test('can return user for verified signature', function(done){
var req = {query:{},
headers:{authorization:real_oauth_header, host: 'vizzuality.testhost.lan' },
method: 'GET',
route: {path: '/api/v1/tables'}
path: '/api/v1/tables'
};
oAuth.verifyRequest(req, function(err, data){
@ -83,7 +83,7 @@ test('returns null user for unverified signatures', function(done){
var req = {query:{},
headers:{authorization:real_oauth_header, host: 'vizzuality.testyhost.lan' },
method: 'GET',
route: {path: '/api/v1/tables'}
path: '/api/v1/tables'
};
oAuth.verifyRequest(req, function(err, data){
@ -97,7 +97,7 @@ test('returns null user for no oauth', function(done){
query:{},
headers:{},
method: 'GET',
route: {path: '/api/v1/tables'}
path: '/api/v1/tables'
};
oAuth.verifyRequest(req,function(err,data){