/
githubmirror
/
express
Обзор
Документация
Войти
/
githubmirror
/
express
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/acceptance/error.js
28 строк
608 B
Douglas Christopher Wilson
lint: add eslint rules that cover editorconfig
06 авг 2017, 06:37
06 авг 2017, 06:37
56e90e3
Код
Авторство
О чём код?
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) }) }) })