params.js
This file
Path
test/acceptance/params.js
44 lines · 1.0 KiB · JavaScript
Last changed by
Merge tag '3.9.0'Douglas Christopher Wilsonbefore adoptiondb4448d
History of this fileTake it
The walk stopped after 200 commits: lines older than cada9f6 point at it.
pin devDependencies using ~Roman Shtylmanbefore adoptioncada9f6
line 1why, one step back1var app = require('../../examples/params/app')Merge tag '3.9.0'Douglas Christopher Wilsonbefore adoptiondb4448d
line 2why, one step back2var request = require('supertest')pin devDependencies using ~Roman Shtylmanbefore adoptioncada9f6
lines 3–20why, one step back34describe('params', function(){5 describe('GET /', function(){6 it('should respond with instructions', function(done){7 request(app)8 .get('/')9 .expect(/Visit/,done)10 })11 })1213 describe('GET /user/0', function(){14 it('should respond with a user', function(done){15 request(app)16 .get('/user/0')17 .expect(/user tj/,done)18 })19 })20Merge tag '3.9.0'Douglas Christopher Wilsonbefore adoptiondb4448d
lines 21–28why, one step back21 describe('GET /user/9', function(){22 it('should fail to find user', function(done){23 request(app)24 .get('/user/9')25 .expect(/failed to find user/,done)26 })27 })28pin devDependencies using ~Roman Shtylmanbefore adoptioncada9f6
lines 29–33why, one step back29 describe('GET /users/0-2', function(){30 it('should respond with three users', function(done){31 request(app)32 .get('/users/0-2')33 .expect(/users tj, tobi/,done)Merge tag '3.9.0'Douglas Christopher Wilsonbefore adoptiondb4448d
lines 34–41why, one step back34 })35 })3637 describe('GET /users/foo-bar', function(){38 it('should fail integer parsing', function(done){39 request(app)40 .get('/users/foo-bar')41 .expect(/failed to parseInt foo/,done)pin devDependencies using ~Roman Shtylmanbefore adoptioncada9f6
lines 42–44why, one step back42 })43 })44})