Skip to content

Commit

Permalink
tweak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 28, 2011
1 parent 869af3b commit 80bb46f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/node/basic-auth.js
Expand Up @@ -13,14 +13,16 @@ app.get('/', function(req, res){

app.listen(3010);

describe('req.auth(user, pass)', function(){
it('should set Authorization', function(done){
request
.get('http://localhost:3010')
.auth('tobi', 'learnboost')
.end(function(res){
res.status.should.equal(200);
done();
});
describe('Basic auth', function(){
describe('req.auth(user, pass)', function(){
it('should set Authorization', function(done){
request
.get('http://localhost:3010')
.auth('tobi', 'learnboost')
.end(function(res){
res.status.should.equal(200);
done();
});
})
})
})

0 comments on commit 80bb46f

Please sign in to comment.