Permalink
Browse files

assertion for req.get() => undefined. Closes #1152

  • Loading branch information...
1 parent 910dae1 commit 685eec01495d6e1ccb7048c2e9f5c0d4e2df904a @tj tj committed May 30, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/req.get.js
View
@@ -1,13 +1,15 @@
var express = require('../')
- , request = require('./support/http');
+ , request = require('./support/http')
+ , assert = require('assert');
describe('req', function(){
describe('.get(field)', function(){
it('should return the header field value', function(done){
var app = express();
app.use(function(req, res){
+ assert(req.get('Something-Else') === undefined);
res.end(req.get('Content-Type'));
});

0 comments on commit 685eec0

Please sign in to comment.