Skip to content

Commit 7792498

Browse files
author
Sandro Santilli
committed
Fix oAuth unit tests now that we use req.path rather than req.route.path
1 parent e03262c commit 7792498

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/oauth.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test('can return user for verified signature', function(done){
6969
var req = {query:{},
7070
headers:{authorization:real_oauth_header, host: 'vizzuality.testhost.lan' },
7171
method: 'GET',
72-
route: {path: '/api/v1/tables'}
72+
path: '/api/v1/tables'
7373
};
7474

7575
oAuth.verifyRequest(req, function(err, data){
@@ -83,7 +83,7 @@ test('returns null user for unverified signatures', function(done){
8383
var req = {query:{},
8484
headers:{authorization:real_oauth_header, host: 'vizzuality.testyhost.lan' },
8585
method: 'GET',
86-
route: {path: '/api/v1/tables'}
86+
path: '/api/v1/tables'
8787
};
8888

8989
oAuth.verifyRequest(req, function(err, data){
@@ -97,7 +97,7 @@ test('returns null user for no oauth', function(done){
9797
query:{},
9898
headers:{},
9999
method: 'GET',
100-
route: {path: '/api/v1/tables'}
100+
path: '/api/v1/tables'
101101
};
102102

103103
oAuth.verifyRequest(req,function(err,data){

0 commit comments

Comments
 (0)