error.js
This file
Path
test/acceptance/error.js
28 lines · 616 bytes · JavaScript
Last changed by
Updated error example with acceptance tests.Robert Sköldbefore adoption9d95645
History of this fileTake it
12345678910111213141516171819202122232425262728var app = require('../../examples/error/app') , request = require('../support/http');
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) }) })})