Skip to content
Myr

error.js

This file

Path

test/acceptance/error.js

29 lines · 607 bytes · JavaScript

Last changed by

remove unnecessary test/support/httpJonathan Ongbefore adoption328c6d3

History of this file

Take it

The walk stopped after 200 commits: lines older than a10f695 point at it.

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

lines 1–2why, one step back
1
2var app = require('../../examples/error')

remove unnecessary test/support/httpJonathan Ongbefore adoption328c6d3

line 3why, one step back
3 , request = require('supertest');

pin jade dev dep so tests do not breakTJ Holowaychukbefore adoptiona10f695

lines 4–29why, one step back
4
5describe('error', function(){6 describe('GET /', function(){7 it('should respond with 500', function(done){8 request(app)9 .get('/')10 .expect(500,done)11 })12 })1314 describe('GET /next', function(){15 it('should respond with 500', function(done){16 request(app)17 .get('/next')18 .expect(500,done)19 })20 })2122 describe('GET /missing', function(){23 it('should respond with 404', function(done){24 request(app)25 .get('/missing')26 .expect(404,done)27 })28 })29})