error.js
This file
Path
test/acceptance/error.js
28 lines · 616 bytes · JavaScript
Last changed by
Merge branch 'integration'TJ Holowaychukbefore adoption0ae024a
History of this fileTake it
Merge branch 'integration'TJ Holowaychukbefore adoption0ae024a
lines 1–28why, one step back1var app = require('../../examples/error/app')2 , request = require('../support/http');34describe('error', function(){5 describe('GET /', function(){6 it('should respond with 500', function(done){7 request(app)8 .get('/')9 .expect(500,done)10 })11 })1213 describe('GET /next', function(){14 it('should respond with 500', function(done){15 request(app)16 .get('/next')17 .expect(500,done)18 })19 })2021 describe('GET /missing', function(){22 it('should respond with 404', function(done){23 request(app)24 .get('/missing')25 .expect(404,done)26 })27 })28})