Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 685eec01495d6e1ccb7048c2e9f5c0d4e2df904a 1 parent 910dae1
@tj tj authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/req.get.js
View
4 test/req.get.js
@@ -1,6 +1,7 @@
var express = require('../')
- , request = require('./support/http');
+ , request = require('./support/http')
+ , assert = require('assert');
describe('req', function(){
describe('.get(field)', function(){
@@ -8,6 +9,7 @@ describe('req', function(){
var app = express();
app.use(function(req, res){
+ assert(req.get('Something-Else') === undefined);
res.end(req.get('Content-Type'));
});
Please sign in to comment.
Something went wrong with that request. Please try again.