126
127 route.get(function () {
128▶ throw new Error('not me!');
129 })
130
· · ·
168 })
169
170▶ describe('errors', function(){
171 it('should handle errors via arity 4 functions', function(done){
172 var req = { order: '', method: 'GET', url: '/' };
· · ·
171▶ it('should handle errors via arity 4 functions', function(done){
172 var req = { order: '', method: 'GET', url: '/' };
173 var route = new Route('');
· · ·
174
175 route.all(function(req, res, next){
176▶ next(new Error('foobar'));
177 });
178
· · ·
200
201 route.all(function () {
202▶ throw new Error('foobar');
203 });
204
+ 6 more matches in this file