error.js
This file
Path
test/acceptance/error.js
29 lines · 608 bytes · JavaScript
Last changed by
Merge tag '4.15.4'Douglas Christopher Wilsonbefore adoptionc319fe2
History of this fileTake it
123456789101112131415161718192021222324252627282930
var app = require('../../examples/error') , request = require('supertest');
describe('error', function(){ describe('GET /', function(){ it('should respond with 500', function(done){ request(app) .get('/') .expect(500,done) }) })
describe('GET /next', function(){ it('should respond with 500', function(done){ request(app) .get('/next') .expect(500,done) }) })
describe('GET /missing', function(){ it('should respond with 404', function(done){ request(app) .get('/missing') .expect(404,done) }) })})