Skip to content
Myr

Added meta-generated tests for all HTTP methods supported

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 5c03226 · Browse files · 1 file+17 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+17 added−0 removed

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:test/app.router.js+17 added
1 unmodified line
2var express = require('../')3 , request = require('./support/http');45describe('app.router', function(){6 describe('methods supported', function(){7 express.methods.forEach(function(method){8 it('should include ' + method, function(done){9 var app = express();10 var calls = [];1112 app[method]('/foo', function(req, res){13 res.end(method);14 });1516 request(app)17 [method]('/foo')18 .expect(method, done);19 })20 });21 })2223 it('should be .use()able', function(done){24 var app = express();2526 var calls = [];
409 unmodified lines