Skip to content

Commit

Permalink
test: remove redundant variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed May 31, 2024
1 parent e8f35c6 commit fdc9e57
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ app.use(function(req, res, next){

test(app, 'basicAuth(user, pass)');



var app = connect();

app.use(basicAuth(function(user, pass){
return 'tj' == user && 'tobi:learnboost' == pass;
}));
Expand All @@ -99,9 +95,6 @@ app.use(function(req, res, next){
test(app, 'basicAuth(callback)');



var app = connect();

app.use(basicAuth(function(user, pass, fn){
var ok = 'tj' == user && 'tobi:learnboost' == pass;
fn(null, ok
Expand Down

0 comments on commit fdc9e57

Please sign in to comment.