Permalink
Browse files

add another test

  • Loading branch information...
1 parent e32f49b commit 88f53a117307ae2712319a172fe1fe65fe8c514f TJ Holowaychuk committed Jun 26, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/supertest.js
View
@@ -107,5 +107,19 @@ describe('request(app)', function(){
done();
});
})
+
+ it('should assert multiple fields', function(done){
+ var app = express();
+
+ app.get('/', function(req, res){
+ res.send('hey');
+ });
+
+ request(app)
+ .get('/')
+ .expect('Content-Type', 'text/html; charset=utf-8')
+ .expect('Content-Length', '3')
+ .end(done);
+ })
})
})

0 comments on commit 88f53a1

Please sign in to comment.